Skip to content

Commit

Permalink
Install thinc-apple-ops on M1 mac, require native calibre build
Browse files Browse the repository at this point in the history
  • Loading branch information
xxyzz committed Jan 15, 2022
1 parent 48cfde8 commit 4d2bc5e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
from calibre.customize import InterfaceActionBase

VERSION = (3, 16, 2)
VERSION = (3, 17, 0)


class WordDumbDumb(InterfaceActionBase):
Expand Down
2 changes: 1 addition & 1 deletion data/spacy.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
},
"numpy": {
"compiled": true,
"version": "1.22.0"
"version": "1.22.1"
},
"packaging": {
"compiled": false,
Expand Down
6 changes: 6 additions & 0 deletions data/spacy_extra.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,11 @@
"compiled": true,
"version": "0.0.28"
}
},
"apple": {
"thinc-apple-ops": {
"compiled": true,
"version": "0.0.5"
}
}
}
4 changes: 4 additions & 0 deletions deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,7 @@ def install_extra_deps(self):
if (lang := self.model[:2]) in data:
for pkg, value in data[lang].items():
self.pip_install(pkg, value['version'], value['compiled'])

if ismacos and self.machine == 'arm64':
for pkg, value in data['apple'].items():
self.pip_install(pkg, value['version'], value['compiled'])

0 comments on commit 4d2bc5e

Please sign in to comment.