summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authordoko@ubuntu.com <doko@ubuntu.com>2012-06-30 22:23:51 (GMT)
committerdoko@ubuntu.com <doko@ubuntu.com>2012-06-30 22:23:51 (GMT)
commitcc5addd3b64919af67d25a1c4d577008b05e0967 (patch)
tree8f0b17a4e185e74c1fa4436ba80acbf4c5f69e91 /setup.py
parent4c99071c9be1cf81e915ebfcb17dcf50c6e489d6 (diff)
downloadcpython-cc5addd3b64919af67d25a1c4d577008b05e0967.zip
cpython-cc5addd3b64919af67d25a1c4d577008b05e0967.tar.gz
cpython-cc5addd3b64919af67d25a1c4d577008b05e0967.tar.bz2
- Issue #14330: Don't derive the include and library search dirs
from GCC for native builds
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py16
1 files changed, 6 insertions, 10 deletions
diff --git a/setup.py b/setup.py
index fa7bf2e..d654aab 100644
--- a/setup.py
+++ b/setup.py
@@ -438,7 +438,9 @@ class PyBuildExt(build_ext):
if not cross_compiling:
add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
- self.add_gcc_paths()
+ # only change this for cross builds for 3.3, issues on Mageia
+ if cross_compiling:
+ self.add_gcc_paths()
self.add_multiarch_paths()
# Add paths specified in the environment variables LDFLAGS and
@@ -489,18 +491,12 @@ class PyBuildExt(build_ext):
# lib_dirs and inc_dirs are used to search for files;
# if a file is found in one of those directories, it can
# be assumed that no additional -I,-L directives are needed.
- inc_dirs = self.compiler.include_dirs[:]
- lib_dirs = self.compiler.library_dirs[:]
if not cross_compiling:
- for d in (
- '/usr/include',
- ):
- add_dir_to_list(inc_dirs, d)
- for d in (
+ lib_dirs = self.compiler.library_dirs + [
'/lib64', '/usr/lib64',
'/lib', '/usr/lib',
- ):
- add_dir_to_list(lib_dirs, d)
+ ]
+ inc_dirs = self.compiler.include_dirs + ['/usr/include']
exts = []
missing = []