diff --git a/Misc/NEWS b/Misc/NEWS index 2bad29ad9d0..d880f88b56e 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -467,6 +467,9 @@ Tests Build ----- +- Fix cross compiling issue in setup.py, ensure that lib_dirs and inc_dirs are + defined in cross compiling mode, too. + - Issue #16593: Have BSD 'make -s' do the right thing, thanks to Daniel Shahaf - Issue #16262: fix out-of-src-tree builds, if mercurial is not installed. diff --git a/setup.py b/setup.py index 872f22a8855..fc59c3d34a0 100644 --- a/setup.py +++ b/setup.py @@ -506,6 +506,9 @@ def detect_modules(self): '/lib', '/usr/lib', ] inc_dirs = self.compiler.include_dirs + ['/usr/include'] + else: + lib_dirs = [] + inc_dirs = [] exts = [] missing = []