[SciPy-user] scipy build bdist_rpm

Robert Kern robert.kern at gmail.com
Fri Jun 23 22:09:27 CDT 2006


Christian Kristukat wrote:
> Hi,
> I tried to build a binary rpm using
> 
> python setup.py bdist_rpm
> 
> on scipy 0.4.9 and get the following error:
> 
> building extension "scipy.fftpack._fftpack" sources
> Traceback (most recent call last):
>   File "setup.py", line 50, in ?
>     setup_package()

>   File "/usr/lib/python2.4/site-packages/numpy/distutils/command/build_src.py",
> line 412, in f2py_sources
>     raise ValueError("%r missing" % (target_file,))
> ValueError: '_fftpackmodule.c' missing
> error: Bad exit status from /home/ck/testarea/rpm/tmp/rpm-tmp.24879 (%build)
> 
> 
> RPM build errors:
>     Bad exit status from /home/ck/testarea/rpm/tmp/rpm-tmp.24879 (%build)
> error: command 'rpmbuild' failed with exit status 1
> 
> A normal build however runs without problems.

numpy.distutils adds a build_src command that scipy uses extensively. The 
command dependencies are sometimes no triggered correctly. Try explicitly 
listing the important commands:

   $ python setup.py build_src build_clib build_ext build bdist_rpm

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco



More information about the SciPy-user mailing list