Mercurial > cpython-lru_cache-weakref
diff setup.py @ 24477:b38754f1cb61 legacy-trunk
Fix for
[ 589427 ] standard include paths on command line
| author | Michael W. Hudson <mwh@python.net> |
|---|---|
| date | Fri, 02 Aug 2002 13:55:50 +0000 |
| parents | e9e6111beec1 |
| children | 0cf4e0539cc1 |
line wrap: on
line diff
--- a/setup.py Fri Aug 02 12:56:21 2002 +0000 +++ b/setup.py Fri Aug 02 13:55:50 2002 +0000 @@ -230,10 +230,11 @@ 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
