mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-24 00:46:28 +03:00
Support env var for num build jobs (#11073)
This commit is contained in:
parent
d36d66b7ca
commit
78a84f0d78
2
setup.py
2
setup.py
|
@ -126,6 +126,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