[SciPy-dev] How to avoid arch specific compiler flags in scipy_distutils?

Pearu Peterson pearu at scipy.org
Wed Feb 11 13:20:18 EST 2004



On Wed, 11 Feb 2004, José Fonseca wrote:

> I've finally been doing some work updating the scipy & f2py debian
> packages and things are slowly progressing.

Good to hear.

> The showstopper ATM, is the fact that the fortran sources are being
> compiled with architecture specific compiler flags ("-march=pentium4
> -msse2 -msse ..."). I know that this is done automatically in
> scipy_distutils/gnufcompiler.py . Is there any non-intrusive way (i.e.,
> from command line) to prevent that? 

Yes, there is. Use build_src branch of scipy_distutils (soon it will be 
merged into the HEAD branch):

  cd cvs/scipy/scipy_core/scipy_distutils/
  cvs -z7 update -r build_src

Then build scipy as follows

  python setup.py config_fc --noarch build

Pearu



More information about the SciPy-Dev mailing list