mirror of
https://github.com/python/cpython.git
synced 2025-07-19 09:15:34 +00:00
Add the directories where DarwinPorts installs library and include files to
the proper path directories for compiling extension modules.
This commit is contained in:
parent
1793dd31de
commit
35b93d9720
1 changed files with 5 additions and 2 deletions
7
setup.py
7
setup.py
|
@ -245,11 +245,14 @@ class PyBuildExt(build_ext):
|
||||||
add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
|
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.include_dirs, '/usr/local/include')
|
||||||
|
|
||||||
# fink installs lots of goodies in /sw/... - make sure we
|
# Add paths to popular package managers on OS X/darwin
|
||||||
# check there
|
|
||||||
if sys.platform == "darwin":
|
if sys.platform == "darwin":
|
||||||
|
# Fink installs into /sw by default
|
||||||
add_dir_to_list(self.compiler.library_dirs, '/sw/lib')
|
add_dir_to_list(self.compiler.library_dirs, '/sw/lib')
|
||||||
add_dir_to_list(self.compiler.include_dirs, '/sw/include')
|
add_dir_to_list(self.compiler.include_dirs, '/sw/include')
|
||||||
|
# DarwinPorts installs into /opt/local by default
|
||||||
|
add_dir_to_list(self.compiler.library_dirs, '/opt/local/lib')
|
||||||
|
add_dir_to_list(self.compiler.include_dirs, '/opt/local/include')
|
||||||
|
|
||||||
if os.path.normpath(sys.prefix) != '/usr':
|
if os.path.normpath(sys.prefix) != '/usr':
|
||||||
add_dir_to_list(self.compiler.library_dirs,
|
add_dir_to_list(self.compiler.library_dirs,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue