Tom Epperly wrote:
I tried applying this patch to the Debian python-scipy source package, and it makes the packable buildable (can't vouch for whether it runs correctly):

http://mirrors.usc.edu/pub/linux/distributions/gentoo/sci-libs/scipy/files/scipy-0.5.2-getpath.patch


I made a 0.5.2-7+b2 using the patch above. I also need to edit montecarlo.py to move the line

    from __future__ import division

before __author__ = "Ed Schofield" in Lib/sandbox/montecarlo/montecarlo.py to fix this error:

dpkg --install python-scipy_0.5.2-7+b2_i386.deb (Reading database ... 379477 files and directories currently installed.) Preparing to replace python-scipy 0.5.2-7+b2 (using python-scipy_0.5.2-7+b2_i386.deb) ...
Unpacking replacement python-scipy ...
Setting up python-scipy (0.5.2-7+b2) ...
Compiling /usr/lib/python2.5/site-packages/scipy/sandbox/montecarlo/montecarlo.py ... File "/usr/lib/python2.5/site-packages/scipy/sandbox/montecarlo/montecarlo.py", line 8
   from __future__ import division
SyntaxError: from __future__ imports must occur at the beginning of the file

pycentral: pycentral pkginstall: error byte-compiling files (882)
pycentral pkginstall: error byte-compiling files (882)
dpkg: error processing python-scipy (--install):
subprocess post-installation script returned error exit status 1

Errors were encountered while processing:
python-scipy


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to