summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2002-08-02 13:55:50 (GMT)
committerMichael W. Hudson <mwh@python.net>2002-08-02 13:55:50 (GMT)
commit90b8e4d40cc8ec3aed05d5bc6a5afc981e7ebc0c (patch)
tree3b41799b57f9c99c1a34911c0021a4563ace50ec
parent6e1986ba9c8d014565c72217c3f946c67fcd34f6 (diff)
downloadcpython-90b8e4d40cc8ec3aed05d5bc6a5afc981e7ebc0c.zip
cpython-90b8e4d40cc8ec3aed05d5bc6a5afc981e7ebc0c.tar.gz
cpython-90b8e4d40cc8ec3aed05d5bc6a5afc981e7ebc0c.tar.bz2
Fix for
[ 589427 ] standard include paths on command line
-rw-r--r--setup.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/setup.py b/setup.py
index 4a365d5..c67f724 100644
--- a/setup.py
+++ b/setup.py
@@ -230,10 +230,11 @@ class PyBuildExt(build_ext):
add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
- 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"))
+ if os.path.normpath(sys.prefix) != '/usr':
+ 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"))
try:
have_unicode = unicode