D6923: setup: build extensions in parallel by default
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Fri Oct 4 03:56:36 UTC 2019
Closed by commit rHGf9d35f01b8b3: setup: build extensions in parallel by default (authored by indygreg).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D6923?vs=16715&id=16790
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D6923/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D6923
AFFECTED FILES
setup.py
CHANGE DETAILS
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -490,6 +490,14 @@
return build_ext.initialize_options(self)
+ def finalize_options(self):
+ # Unless overridden by the end user, build extensions in parallel.
+ # Only influences behavior on Python 3.5+.
+ if getattr(self, 'parallel', None) is None:
+ self.parallel = True
+
+ return build_ext.finalize_options(self)
+
def build_extensions(self):
ruststandalones = [e for e in self.extensions
if isinstance(e, RustStandaloneExtension)]
To: indygreg, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list