diff options
author | Pearu Peterson <pearu.peterson@gmail.com> | 2004-03-12 07:20:17 +0000 |
---|---|---|
committer | Pearu Peterson <pearu.peterson@gmail.com> | 2004-03-12 07:20:17 +0000 |
commit | c9165603cee9cdb8921e1a41f92267675d049b8b (patch) | |
tree | eb559dc0ff65d9370e699464f9f5d112834199e7 /scipy_distutils/gnufcompiler.py | |
parent | 4d2ead9b70e451408cb184f19c692814ec4781ca (diff) | |
download | numpy-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.py | 6 |
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': |