build instructions for scipy on Mac OS X
Hi All, I've seen a few requests for help compiling scipy on Mac OS X. As I just did this again and it's fresh in my mind, let me describe what I did. This was with Python2.3b1 that I compiled myself. 0) Don't set MACOSX_DEPLOYMENT_TARGET environment variable to 10.2 -- it doesn't play nicely with g77 1) Install g77 and atlas using fink. (Make sure g77 is on your path.) 2) Get scipy from CVS (I checked out the head version yesterday) 3) Rename sample_site.cfg to site.cfg in the scipy_core/scipy_distutils directory. 4) Add /sw/lib to library_dirs and /sw/include to include_dirs in the DEFAULT section of site.cfg (This will cause scipy to use atlas installed by fink.) 5) Remove xplt from setup.py (various tk dependency errors I didn't bother to fix) 6) python setup.py build 7) sudo python setup.py install I'm cross posting this to scipy-user and pythonmac-sig. To (arbitrarily) pick a single location for follow-ups, shall we say the scipy list? Cheers! Andrew
On Mon, 26 May 2003, Andrew Straw wrote:
Hi All,
I've seen a few requests for help compiling scipy on Mac OS X. As I just did this again and it's fresh in my mind, let me describe what I did. This was with Python2.3b1 that I compiled myself.
0) Don't set MACOSX_DEPLOYMENT_TARGET environment variable to 10.2 -- it doesn't play nicely with g77 1) Install g77 and atlas using fink. (Make sure g77 is on your path.) 2) Get scipy from CVS (I checked out the head version yesterday)
I guess you forgot to mention that scipy building process requires also f2py2e. Currently the following steps can be recommended: 2.1) Get scipy from CVS 2.2) Install scipy_core: cd scipy_code && python setup.py install This step is required to avoid any possible conflicts with older version of scipy_distutils that is shipped with f2py2e tar-ball. 2.3) Get the latest f2py2e (either as tar-ball or from CVS) and install it. I believe that f2py2e is available also through fink.
3) Rename sample_site.cfg to site.cfg in the scipy_core/scipy_distutils directory. 4) Add /sw/lib to library_dirs and /sw/include to include_dirs in the DEFAULT section of site.cfg (This will cause scipy to use atlas installed by fink.) 5) Remove xplt from setup.py (various tk dependency errors I didn't bother to fix) 6) python setup.py build 7) sudo python setup.py install
Pearu
On Monday, May 26, 2003, at 12:01 Europe/Rome, Andrew Straw wrote:
Hi All,
I've seen a few requests for help compiling scipy on Mac OS X. As I just did this again and it's fresh in my mind, let me describe what I did. This was with Python2.3b1 that I compiled myself.
[snip]
I was wondering why you can't simply type in "fink install scipy-py23" (or "fink install scipy-py22" for those who have Python 2.2.x installed). Is there any significant difference between fink distribution and the CVS one?? Thanks, Andrea. --- Andrea Riciputi "Science is like sex: sometimes something useful comes out, but that is not the reason we are doing it" -- (Richard Feynman)
participants (3)
-
Andrea Riciputi -
Andrew Straw -
Pearu Peterson