summaryrefslogtreecommitdiff
path: root/scipy_distutils/gnufcompiler.py
diff options
context:
space:
mode:
authorPearu Peterson <pearu.peterson@gmail.com>2004-03-12 07:20:17 +0000
committerPearu Peterson <pearu.peterson@gmail.com>2004-03-12 07:20:17 +0000
commitc9165603cee9cdb8921e1a41f92267675d049b8b (patch)
treeeb559dc0ff65d9370e699464f9f5d112834199e7 /scipy_distutils/gnufcompiler.py
parent4d2ead9b70e451408cb184f19c692814ec4781ca (diff)
downloadnumpy-c9165603cee9cdb8921e1a41f92267675d049b8b.tar.gz
Use -framework Python only with apple python, fink python does not need it (as I have been told)
Diffstat (limited to 'scipy_distutils/gnufcompiler.py')
-rw-r--r--scipy_distutils/gnufcompiler.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/scipy_distutils/gnufcompiler.py b/scipy_distutils/gnufcompiler.py
index 776e238cd..5e0ed1031 100644
--- a/scipy_distutils/gnufcompiler.py
+++ b/scipy_distutils/gnufcompiler.py
@@ -48,7 +48,11 @@ class GnuFCompiler(FCompiler):
def get_flags_linker_so(self):
opt = []
if sys.platform=='darwin':
- opt.extend(["-Wl,-framework","-Wl,Python","-lcc_dynamic","-bundle"])
+ if sys.executable.startswith('/usr/bin'):
+ # This is when Python is from Apple framework
+ opt.extend(["-Wl,-framework","-Wl,Python"])
+ #else we are running in Fink python.
+ opt.extend(["-lcc_dynamic","-bundle"])
else:
opt.append("-shared")
if sys.platform[:5]=='sunos':