2010-09-07 11:16:04 +00:00
|
|
|
---
|
|
|
|
setup.py | 15 ++-------------
|
|
|
|
1 file changed, 2 insertions(+), 13 deletions(-)
|
|
|
|
|
2011-11-30 19:47:24 +00:00
|
|
|
--- a/setup.py
|
|
|
|
+++ b/setup.py
|
2012-03-29 14:11:26 +00:00
|
|
|
@@ -368,11 +368,6 @@ class PyBuildExt(build_ext):
|
|
|
|
os.unlink(tmpfile)
|
2009-03-06 20:27:09 +00:00
|
|
|
|
|
|
|
def detect_modules(self):
|
|
|
|
- # Ensure that /usr/local is always used
|
|
|
|
- add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
|
|
|
|
- add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
|
2012-03-29 14:11:26 +00:00
|
|
|
- self.add_multiarch_paths()
|
|
|
|
-
|
2009-03-06 20:27:09 +00:00
|
|
|
# Add paths specified in the environment variables LDFLAGS and
|
|
|
|
# CPPFLAGS for header and library files.
|
2012-03-29 14:11:26 +00:00
|
|
|
# We must get the values from the Makefile and not the environment
|
|
|
|
@@ -407,17 +402,6 @@ class PyBuildExt(build_ext):
|
2009-03-06 20:27:09 +00:00
|
|
|
for directory in reversed(options.dirs):
|
|
|
|
add_dir_to_list(dir_list, directory)
|
|
|
|
|
2012-03-29 14:11:26 +00:00
|
|
|
- if os.path.normpath(sys.prefix) != '/usr' \
|
|
|
|
- and not sysconfig.get_config_var('PYTHONFRAMEWORK'):
|
|
|
|
- # OSX note: Don't add LIBDIR and INCLUDEDIR to building a framework
|
|
|
|
- # (PYTHONFRAMEWORK is set) to avoid # linking problems when
|
|
|
|
- # building a framework with different architectures than
|
|
|
|
- # the one that is currently installed (issue #7473)
|
2009-03-06 20:27:09 +00:00
|
|
|
- add_dir_to_list(self.compiler.library_dirs,
|
|
|
|
- sysconfig.get_config_var("LIBDIR"))
|
|
|
|
- add_dir_to_list(self.compiler.include_dirs,
|
|
|
|
- sysconfig.get_config_var("INCLUDEDIR"))
|
2012-03-29 14:11:26 +00:00
|
|
|
-
|
2009-03-06 20:27:09 +00:00
|
|
|
try:
|
|
|
|
have_unicode = unicode
|
2012-03-29 14:11:26 +00:00
|
|
|
except NameError:
|
|
|
|
@@ -426,11 +410,8 @@ class PyBuildExt(build_ext):
|
2009-03-06 20:27:09 +00:00
|
|
|
# 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.
|
|
|
|
- lib_dirs = self.compiler.library_dirs + [
|
|
|
|
- '/lib64', '/usr/lib64',
|
|
|
|
- '/lib', '/usr/lib',
|
|
|
|
- ]
|
|
|
|
- inc_dirs = self.compiler.include_dirs + ['/usr/include']
|
|
|
|
+ lib_dirs = self.compiler.library_dirs
|
|
|
|
+ inc_dirs = self.compiler.include_dirs
|
|
|
|
exts = []
|
|
|
|
missing = []
|
|
|
|
|