[SciPy-dev] numpy-0.9.2, scipy-0.4.4 RPMs
Ravikiran Rajagopal
ravi at ati.com
Wed Jan 18 09:54:19 EST 2006
On Wednesday 18 January 2006 07:30, Neal Becker wrote:
> 2) Needs some buildrequires. lapack, blas. scipy wants
> compat-gcc-32-g77-3.2.3-54.fc5 to provide f77. BTW, I assume it's OK to
> use this for f77 even though gcc is 4.1? There is no f77 for gcc4.1 - it
> has f95 instead. Don't know if that would work - and definitely don't know
> how to convince python setup.py to use it even if it did!
You do not need g77/f77. With gfortran and gcc from the gcc 4.1 tool suite,
numpy and scipy compile just fine, and work very well - I am even using them
on a daily basis for my production work! The following minimal changes should
get everything working fine with gfortran (lines split to accomodate my
mailer):
%build
env CFLAGS="$RPM_OPT_FLAGS" BLAS=%{_libdir} LAPACK=%{_libdir} \
python setup.py config_fc --fcompiler=gnu95 build
%install
python setup.py config_fc --fcompiler=gnu95 \
install --root=$RPM_BUILD_ROOT #--record=INSTALLED_FILES
In general, for FC4 and above, consider using gfortran rather than g77 since
g77 is a dead branch. Virtually everything handled by g77 is also handled by
gfortran; see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19292 for more
information (and ignore the flaming at the end of the comments).
Regards,
Ravi
More information about the SciPy-Dev
mailing list