Mercurial > cpython-lru_cache-weakref
diff setup.py @ 33613:7664e8bae19e legacy-trunk
Add the directories where DarwinPorts installs library and include files to
the proper path directories for compiling extension modules.
| author | Brett Cannon <bcannon@gmail.com> |
|---|---|
| date | Tue, 28 Sep 2004 03:49:52 +0000 |
| parents | af65004f622f |
| children | ec993b726605 |
line wrap: on
line diff
--- a/setup.py Tue Sep 28 03:12:01 2004 +0000 +++ b/setup.py Tue Sep 28 03:49:52 2004 +0000 @@ -245,11 +245,14 @@ 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,
