summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2004-09-28 03:49:52 (GMT)
committerBrett Cannon <bcannon@gmail.com>2004-09-28 03:49:52 (GMT)
commit35b93d972045302ca347ee0ca8fe7e11b5c67e2c (patch)
tree4b2b5bd882378c86f9dab8b9ab88a7d068f6996e /setup.py
parent1793dd31dea990930dd75154050124b563b58e7a (diff)
downloadcpython-35b93d972045302ca347ee0ca8fe7e11b5c67e2c.zip
cpython-35b93d972045302ca347ee0ca8fe7e11b5c67e2c.tar.gz
cpython-35b93d972045302ca347ee0ca8fe7e11b5c67e2c.tar.bz2
Add the directories where DarwinPorts installs library and include files to
the proper path directories for compiling extension modules.
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index 3673f5c..e3b6b1b 100644
--- a/setup.py
+++ b/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.include_dirs, '/usr/local/include')
- # fink installs lots of goodies in /sw/... - make sure we
- # check there
+ # Add paths to popular package managers on OS X/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.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':
add_dir_to_list(self.compiler.library_dirs,