diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2019-12-23 13:34:17 +0100 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2019-12-23 13:34:17 +0100 |
commit | 14fd58bbf44be7f9b72bc3b5d77dcbd86b988b03 (patch) | |
tree | 9f6715ce9ec411fa57a3d8ee03ac9106bbc388f3 | |
parent | cb0dca062d7d20d93412525aed0cd2528dcf4878 (diff) | |
download | cython-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.py | 9 |
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): """ |