[Pythonmac-SIG] SciPy install on Tiger with Python 2.4.1 framework
Bob Ippolito
bob at redivi.com
Thu Aug 11 18:34:53 CEST 2005
On Aug 11, 2005, at 6:15 AM, Samuel M. Smith wrote:
> Maybe I am being stupid but I tried to install scipy on 10.4.2 using
> Bob Ippolito's Framework python 2.4.1
> and following the directions on the scipy website for os x http://
> www.scipy.org/Members/fonnesbeck/osx_build.txt/
>
> I first installed python 2.4.1 and several of the packages from Bob's
> site
> http://undefined.org/python/#python
> and from the python packages
> http://pythonmac.org/packages/
>
> 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.
> I changed my PATH shell variable to
>
>> echo $PATH
>>
> /usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin
>
> so that python from the command line runs python 2.4.1
>
> Installing
> Numeric 23.7,
> numarry 1.1.1
> g77 3.4,
> fftw 2.15,
> f2py 2.45,
> aquaterm 1.0b2
> gnuplot 4.0
>
> all went smoothly
> The ploblem occurred with
> scipy 0.3.2
>
> The setup instructions say one might need to remove
> if sys.platform == 'darwin':
> opt.append('cc_dynamic')
>
> from the file gnufcompiler.py
>
> prior to running python setup.py build
>
> However that code snippet doesn't exist in the version of
> gnufcompiler.py in scipy complete 0.3.2.
> The closest I could find was the following
>
>
> if sys.platform=='darwin':
> if os.path.realpath(sys.executable).startswith('/System'):
> # 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")
>
> Which looked like to me that someone had already accounted for the
> framework build so I didn't make any changes
> to setup.py
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)
-bob
More information about the Pythonmac-SIG
mailing list