mirror of
https://github.com/python/cpython.git
synced 2025-07-19 17:25:54 +00:00
Fix for
[ 589427 ] standard include paths on command line
This commit is contained in:
parent
6e1986ba9c
commit
90b8e4d40c
1 changed files with 5 additions and 4 deletions
1
setup.py
1
setup.py
|
@ -230,6 +230,7 @@ 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')
|
||||
|
||||
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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue