Jaonary Rabarisoa <[EMAIL PROTECTED]> writes: > Hi all, > I'd like to build numpy and scipy with the gcc 4.1 provided by > darwinport (I fact, they need a fortran compiler). How can I do to > change the compiler to be used with distutils ? I've tried something > like this : > > python setup.py build --compiler=gcc-dp-4.1 ( all the file installed > with darwinports have the suffix -dp-4.1) > > but I didn't work.
Use the CC environment variable: CC=gcc-dp-4.1 python setup.py build However, note that gfortran will *not* work with scipy: we don't know why, but we believe to be something to do with gfortran not being stable yet. I tested it recently; still no go. You'll need g77; you're probably better off using the gcc 3.4 from darwinports. I don't have my laptop on me right now, but I believe that's what I used. Or, use Apple's 3.3 and g77 from http://hpc.sourceforge.net/; this works fine. Apple's 4.0 will not work. -- |>|\/|< /--------------------------------------------------------------------------\ |David M. Cooke http://arbutus.physics.mcmaster.ca/dmc/ |[EMAIL PROTECTED] _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig