[Python-checkins] cpython (3.3): Fix cross compiling issue in setup.py, ensure that lib_dirs and inc_dirs are

christian.heimes python-checkins at python.org
Wed Dec 12 12:42:01 CET 2012


http://hg.python.org/cpython/rev/9f1f27c5e5b2
changeset:   80828:9f1f27c5e5b2
branch:      3.3
parent:      80826:757cc49ced54
user:        Christian Heimes <christian at cheimes.de>
date:        Wed Dec 12 12:41:00 2012 +0100
summary:
  Fix cross compiling issue in setup.py, ensure that lib_dirs and inc_dirs are
defined in cross compiling mode, too.

files:
  Misc/NEWS |  3 +++
  setup.py  |  3 +++
  2 files changed, 6 insertions(+), 0 deletions(-)


diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -316,6 +316,9 @@
 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
--- a/setup.py
+++ b/setup.py
@@ -506,6 +506,9 @@
                 '/lib', '/usr/lib',
                 ]
             inc_dirs = self.compiler.include_dirs + ['/usr/include']
+        else:
+            lib_dirs = []
+            inc_dirs = []
         exts = []
         missing = []
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list