From: Christian Heimes Date: Wed, 12 Dec 2012 11:41:00 +0000 (+0100) Subject: Fix cross compiling issue in setup.py, ensure that lib_dirs and inc_dirs are X-Git-Tag: v3.3.1rc1~536 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f19529cfd6747bb85afcae946de67663035a734a;p=thirdparty%2FPython%2Fcpython.git Fix cross compiling issue in setup.py, ensure that lib_dirs and inc_dirs are defined in cross compiling mode, too. --- diff --git a/Misc/NEWS b/Misc/NEWS index e9a370c9788c..c57b165ccd61 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -316,6 +316,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 8a9ba5f4276e..8125efcb4e63 100644 --- a/setup.py +++ b/setup.py @@ -506,6 +506,9 @@ class PyBuildExt(build_ext): '/lib', '/usr/lib', ] inc_dirs = self.compiler.include_dirs + ['/usr/include'] + else: + lib_dirs = [] + inc_dirs = [] exts = [] missing = []