[SciPy-User] Scipy.weave.inline and py2exe

Ralf Gommers ralf.gommers@googlemail....
Mon Mar 19 13:54:32 CDT 2012


On Mon, Mar 19, 2012 at 6:52 PM, Sebastian Haase <seb.haase@gmail.com>wrote:

> Hi,
> It should work, with some weave magic ... since weave should know at
> compile time (or at "import time") if a module has already been
> compiled - so would just have to run (or "import") the module once
> before you do the py2exe stuff....
>
> This is just loud thinking,  I would not know the details off hand .....
> Hoping someone else here has more details
> - Sebastian Haase
>
> PS: Last time I used weave (some 5 or so years ago)  it seemed quite
> orphaned... I would be happy to hear now otherwise..
>

You won't hear otherwise. It's unmaintained and only kept for backwards
compatibility. Use Cython for new code.

Ralf



>
> On Mon, Mar 19, 2012 at 6:42 PM, Greg Friedland
> <greg.friedland@gmail.com> wrote:
> > Hi All,
> > Is it possible to use scipy.weave.inline to create a windows exe with
> > py2exe? Perhaps this is too much to ask for because of the behind the
> > scenes stuff that inline does but I thought I'd ask anyway.
> >
> > For the moment when I simply try to import scipy.weave, the exe
> > bundles but when I run it I get:
> >
> >  File "scipy\weave\__init__.pyc", line 26, in <module>
> >  File "scipy\weave\inline_tools.pyc", line 5, in <module>
> >  File "scipy\weave\ext_tools.pyc", line 6, in <module>
> >  File "scipy\weave\build_tools.pyc", line 28, in <module>
> >  File "scipy\weave\platform_info.pyc", line 15, in <module>
> >  File "numpy\distutils\core.pyc", line 25, in <module>
> >  File "numpy\distutils\command\build_ext.pyc", line 9, in <module>
> >  File "distutils\command\build_ext.pyc", line 13, in <module>
> >  File "site.pyc", line 73, in <module>
> >  File "site.pyc", line 38, in __boot
> > ImportError: Couldn't find the real 'site' module
> >
> >
> >
> > thanks,
> > Greg
> > _______________________________________________
> > SciPy-User mailing list
> > SciPy-User@scipy.org
> > http://mail.scipy.org/mailman/listinfo/scipy-user
> _______________________________________________
> SciPy-User mailing list
> SciPy-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20120319/bd714c9d/attachment.html 


More information about the SciPy-User mailing list