[Pythonmac-SIG] SciPy install on Tiger with Python 2.4.1 framework
Samuel M.Smith
smithsm at samuelsmith.org
Thu Aug 11 19:54:13 CEST 2005
>>
>> I only installed packages that said they were compatible with Tiger
>> and 2.4.1
>>
>
> Packages that say 10.4 are *ONLY* compatible with 10.4. Packages
> that say 10.3 also work on 10.4.
Sorry thats what I meant by my statement. I installed both 10.4 only
and 10.4 compatible (which included
some 10.3 packages)
>
> Well, they tried to, but they did it wrong. It should be using a
> more robust way for detecting a framework Python. Something like
> 'Python.framework' in os.path.realpath(sys.executable)
So you think it may not be detecting it right?
The error is consistent with not expecting a framework python?
Anyway I changed gnufcompiler.py to
if sys.platform=='darwin':
#if os.path.realpath(sys.executable).startswith('/System'):
if 'Python.framework' in os.path.realpath(sys.executable):
# 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")
And now setup.py build still exits with an error in the same place
but the error is different
collect2: ld returned 1 exit status
/usr/bin/ld: Undefined symbols:
_fprintf$LDBLStub
_sprintf$LDBLStub
collect2: ld returned 1 exit status
error: Command "/usr/local/bin/g77 -Wl,-framework -Wl,Python -
lcc_dynamic -bundle build/temp.darwin-8.2.0-Power_Macintosh-2.4/build/
src/Lib/fftpack/_fftpackmodule.o build/temp.darwin-8.2.0-
Power_Macintosh-2.4/Lib/fftpack/src/zfft.o build/temp.darwin-8.2.0-
Power_Macintosh-2.4/Lib/fftpack/src/drfft.o build/temp.darwin-8.2.0-
Power_Macintosh-2.4/Lib/fftpack/src/zrfft.o build/temp.darwin-8.2.0-
Power_Macintosh-2.4/Lib/fftpack/src/zfftnd.o build/temp.darwin-8.2.0-
Power_Macintosh-2.4/build/src/fortranobject.o -L/usr/local/lib -L/usr/
local/lib/gcc/powerpc-apple-darwin7.9.0/3.4.4 -Lbuild/
temp.darwin-8.2.0-Power_Macintosh-2.4 -ldfftpack -lrfftw -lfftw -lg2c
-o build/lib.darwin-8.2.0-Power_Macintosh-2.4/scipy/fftpack/
_fftpack.so" failed with exit status 1
So am I converging?
Or should I give up and use DarwinPorts or Fink?
>
> -bob
>
> _______________________________________________
> Pythonmac-SIG maillist - Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
>
**********************************************************************
Samuel M. Smith Ph.D.
2966 Fort Hill Road
Eagle Mountain, Utah 84043
801-768-2768 voice
801-768-2769 fax
**********************************************************************
"The greatest source of failure and unhappiness in the world is
giving up what we want most for what we want at the moment"
**********************************************************************
More information about the Pythonmac-SIG
mailing list