[SciPy-user] bdist_rpm build error in scipy_core from CVS

Fernando Perez Fernando.Perez at colorado.edu
Fri Jan 28 19:33:10 EST 2005


Pearu Peterson wrote:
> 
> On Fri, 28 Jan 2005, Stephen Walton wrote:
> 
> 
>>I just tried
>>
>>python setup.py bdist_rpm
>>
>>in the root scipy directory after a "cvs update -Pd" and got
>>
>>+ env 'CFLAGS=-O2 -g -pipe -m32 -march=i386 -mtune=pentium4' python setup.py 
>>build
>>Traceback (most recent call last):
>>File "setup.py", line 34, in ?
>>  import scipy_distutils
>>ImportError: No module named scipy_distutils
>>error: Bad exit status from /var/tmp/rpm-tmp.32984 (%build)
> 
> 
> Hmm, if there would be a way to set
> 
>   PYTHONPATH=/path/to/cvs/scipy/scipy_core
> 
> for bdist_rpm commands then it should also work without installing 
> scipy_core.

Well, with the attached patch against current CVS (updated minutes ago), I get 
a successful build for the overall rpm with:

root at planck[scipy]# python setup.py bdist_rpm

[...]

root at planck[dist]# d
/usr/local/installers/src/scipy/dist
total 21184
-rw-r--r--  1 root 13052650 Jan 28 17:27 scipy-0.3.2_302.4556-1.i386.rpm
-rw-r--r--  1 root  2905231 Jan 28 17:26 scipy-0.3.2_302.4556-1.src.rpm
-rw-r--r--  1 root  2909055 Jan 28 17:21 scipy-0.3.2_302.4556.tar.gz
-rw-r--r--  1 root  2783499 Jan 28 17:27 scipy-debuginfo-0.3.2_302.4556-1.i386.rpm

This ONLY works if the bdist_rpm command is run straight from the scipy source 
top-level dir, but I think that's a reasonable assumption to make.

Before applying this, it should be tested on other platforms, though (though I 
did try to make the patch portable).

Cheers,

f
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scipy_setup.diff
Type: text/x-patch
Size: 1876 bytes
Desc: not available
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20050128/c9555c89/attachment.bin>


More information about the SciPy-User mailing list