• it seems to be working on my MacBook Pro
• I think it shouldn't be
If your goal is to actually get it working on your system, I suggest you go back to the instructions from hyperjeff here.
Let's review where we were:
• I built Python 2.6.4 from source. I was having trouble with specifying the correct flags to do a framework build, so I skipped that step (at first). This Python is in
A sharp-eyed reader spotted the problem with the flags I was passing to ./configure (a silly typo), so that I was able to make a "framework" build.
I'm not actually sure where this Python ended up. There is a second installed Python (a "framework" version) in
but it has the wrong date (and gcc version) to be the one I built.
Ned Deily cautions that there are important components that need to be added after building Python. I'll have to look into that and report back.
And of course, I still have the Apple-installed "system" Python
I put a sym link into ~/bin pointing to the new (non-framework) Python
In addition to the Python install saga:
• I installed a fortran compiler (notes here).
There are pieces of Numpy (and perhaps SciPy and perhaps other things) written in fortran. Unfortunately the more classic f77 compiler and newer gfortran compilers do not play nice with each other, so we have to build everything with the same compiler.
• I installed FFTW (notes here)
Check out the documentation, which is extensive and very well-done
• I worked through notes for installing UMFPACK and its friends (AMD and UFconfig) here. I was unclear whether this step is required. I skipped it on my MacBook, and I think it worked (although there is some uncertainty about what exactly happened, as you will see). On my iMac at work building Numpy failed complaining about no UMFPACK. I'm going to leave that as an unsolved mystery for now. In particular, it's not clear to me why there's no
make install
in the instructions, but perhaps it's taken care of by the unusual make hb
.• Following hyperjeff, I built Numpy after setting some environment variables.
Notably, I did not do his fifth one (because I'm not using the Framework Python).
Here is where I may have screwed up. I forgot to modify
site.cfg
(see hyperjeff's instructions), before doing the build step above. But initial tests seemed to work.• Following hyperjeff, I built SciPy from the subversion checkout. And installed it.
So, here's the wild thing. I have numpy in my new Python:
But not SciPy. Even though I built it with python26, it is not in the correct site-packages directory. It is in the system one!
How the heck did that happen? Is it possible that all these contortions were unnecessary? Here's the kicker:
[UPDATE: Quick test.
In the code using a two sample t-test from the other day, substitute
Output:
Huh. Looks like it works. Glad I didn't pay for it.