mirror of
https://github.com/explosion/spaCy.git
synced 2025-03-12 15:25:47 +03:00
Support env var for num build jobs (#11073)
This commit is contained in:
parent
d9ad5392c5
commit
e97b07f19d
2
setup.py
2
setup.py
|
@ -124,6 +124,8 @@ class build_ext_options:
|
|||
|
||||
class build_ext_subclass(build_ext, build_ext_options):
|
||||
def build_extensions(self):
|
||||
if not self.parallel:
|
||||
self.parallel = int(os.environ.get("SPACY_NUM_BUILD_JOBS", 1))
|
||||
build_ext_options.build_options(self)
|
||||
build_ext.build_extensions(self)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user