Hi Laurent, Il giorno Tue, 12 Jan 2010 15:13:48 -0800 (PST) Laurent <[email protected]> ha scritto:
> Hi giovanni, all. > > After having made pyinstaller work with matplotlib, scipy (well not > perfect this one, sadly had to hack a little due to time constraints), > opengl, pyqt AND python2.6 (thanks Florian! and ticket 39) under 7 now > I want to put more pressure on pyinstaller! > > Here is the challenge, make mayavi work... > Well this part will be fun, it depends on enthought distribution, vtk > and mayavi :) > > My first (raw) try gave me: > ImportError: No module named enthought.traits > > Ok, googled a little: > https://mail.enthought.com/pipermail/enthought-dev/2009-September/024306.html > http://groups.google.com/group/pyinstaller/browse_thread/thread/cffcb4ccb0241b75/04b14798750d8af3?lnk=gst&q=enthought#04b14798750d8af3 > > Smell bad for me... > > Ok, so if I would want to spend some time on the subject: > > 1/Do you think something is possible with pyinstaller (and not hacky > as https://svn.enthought.com/enthought/changeset/24349?) > I mean could a proper hook can do the job? in the past I spent some time to try to make pyinstaller work with enthought components. Unfortunately I had no success. There are three main problems I encountered: 1. hooks I created to support enthought components was not triggered in my setup. I think, but I'm but sure of this, the cause is that the main enthought directory hasn't a __init__.py file inside. The package path is handles hacking with the __path__ variable in a .pth file. 2. if I manually add an __init__.py file in the enthought folder to avoid problem (1.) hooks are triggered and I can collect all needed sources including qt/wx backends ones. Unfortunately I was not able to find a way to ad to the distribution resources needed by enthought module (they are handled using pkg_resources). 3. finally even if I make a raw copy of the entire enthought package into the onedir directory I keep having problems with dll loading and manifests. Maybe the situation for this point could be changed since the time I performed my tests. I hope this info can help you to find a solution. I'm very interested to use pyinstaller to package enthought based application so please keep posting and take us up to date. > 2/I've seen that all packages needed are in something like: > C:\Python26\Lib\site-packages\Mayavi-3.3.0-py2.6-win32.egg > Does pyinstaller has full support for the egg format?(seems ok from > the FAQ, but prefer to ask the specialists) > > ;_; > > Any comments welcomed! > > Laurent Best regards -- Antonio Valentino
-- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pyinstaller?hl=en.
