summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2019-12-23 13:34:17 +0100
committerStefan Behnel <stefan_ml@behnel.de>2019-12-23 13:34:17 +0100
commit14fd58bbf44be7f9b72bc3b5d77dcbd86b988b03 (patch)
tree9f6715ce9ec411fa57a3d8ee03ac9106bbc388f3
parentcb0dca062d7d20d93412525aed0cd2528dcf4878 (diff)
downloadcython-14fd58bbf44be7f9b72bc3b5d77dcbd86b988b03.tar.gz
Instead of overriding "build_ext.build_extensions()" in "old_build_ext", which works differently for parallel and sequential builds, override only "check_extensions_list()", which gets called by it at the beginning.fix_build_ext
-rw-r--r--Cython/Distutils/old_build_ext.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/Cython/Distutils/old_build_ext.py b/Cython/Distutils/old_build_ext.py
index e73301507..610d29efe 100644
--- a/Cython/Distutils/old_build_ext.py
+++ b/Cython/Distutils/old_build_ext.py
@@ -185,14 +185,11 @@ class old_build_ext(_build_ext.build_ext):
_build_ext.build_ext.run(self)
- def build_extensions(self):
- # First, sanity-check the 'extensions' list
- self.check_extensions_list(self.extensions)
-
+ def check_extensions_list(self, extensions):
+ # Note: might get called multiple times.
+ _build_ext.build_ext.check_extensions_list(self, extensions)
for ext in self.extensions:
ext.sources = self.cython_sources(ext.sources, ext)
- # Call original build_extensions
- _build_ext.build_ext.build_extensions(self)
def cython_sources(self, sources, extension):
"""