[SciPy-user] problem in converting scipy to exe

Géza Groma scipy-user@scipy.net
Fri, 28 Feb 2003 12:53:46 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_0065_01C2DF28.6E7BD3D0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I tried to convert a program using scipy into an exe file on Windows NT =
using both Gordon's Installer and py2exe. The problem is that weave is =
hardcoded to be imported by scipy.__init__. Weave tries to open =
swigptr.c using and absolute path. If the exe file built is exetuted on =
an other computer it will not find it. Py2exe even gives an error =
message during building the exe file.

To cure the problem I simply commented out importing weave in =
scipy.__init__ as well as its name anddescription in _pkgs and _pkg_doc. =
For the current case it eliminated the problem since I did not need =
weave.

Any permanent solution? Can not be weave absolutely independent of =
scipy?

Regards,

G=E9za Groma
Institute of Biophysics
Biological Research Center of Hungarian Academy of Sciences
6701 Szeged, Hungary
------=_NextPart_000_0065_01C2DF28.6E7BD3D0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I tried to convert a program using =
scipy into an=20
exe file on Windows NT using both Gordon's Installer and py2exe. The =
problem is=20
that weave is hardcoded to be imported by scipy.__init__. Weave tries to =
open=20
swigptr.c using and absolute path. If the exe file built is exetuted on =
an other=20
computer it will not find it. Py2exe even gives an error message during =
building=20
the exe file.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>To cure the problem I simply commented =
out=20
importing weave in scipy.__init__ as well as its name anddescription in =
_pkgs=20
and _pkg_doc. For the current case it eliminated the problem since I did =
not=20
need weave.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Any permanent solution? Can not be =
weave absolutely=20
independent of scipy?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Regards,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>G=E9za Groma<BR>Institute of =
Biophysics<BR>Biological=20
Research Center of Hungarian Academy of Sciences<BR>6701 Szeged,=20
Hungary</FONT></DIV></BODY></HTML>

------=_NextPart_000_0065_01C2DF28.6E7BD3D0--