I'm a current user of py2exe, and am experimenting with PyInstaller as a possible replacement. I'm on WinXP using Python 2.4 and wxPython 2.6.3.2.

I've succeeded in created a single-file executable in a distribution directory that has an "aux_files" subdirectory containing some data files. However, I've run across a few problems with PyInstaller 1.1 that I thought it worth mentioning:

1. The config.dat generated by Configure.py had the following line:
      'hasUPX': (1, 94),
This caused Build.py to fail, since it was expecting that key to have an integer value; I changed it to
      'hasUPX': 1,
and it worked OK.  Should I submit a ticket for this?

2. I use EnsureDispatch in my app, and encountered a problem that's described in Ticket #41. By making the patches shown in the ticket, I was able to get a successful build, and have run the application on the build machine and a test machine without Python installed.

3. In attempting to create the directory structure I mentioned above, I defined a COLLECT instance referencing the files in the subdirectory, then passed that to a second COLLECT for the distribution directory; this one looks like
      dist = COLLECT(exe, aux, name='pyi_dist')
This gave a traceback using Build.py on it. Looking at it in the debugger, it seems that COLLECT wants its args to have a value for the "typ" attribute, but the COLLECT class doesn't define that attribute. I suspect that I went about this the wrong way, but you might want to note in the manual that COLLECT args can only be instances of certain subclasses of Target (unless I've misunderstood this completely).

I was able to get close to what I want by using a Tree for the aux files, adding
    prefix='aux_files/'
to get the files into the appropriate subdirectory of the distribution. This gave me everything in the subdirectory, however. What I'd like here is an 'includes=' option, since I only want one file from there. Any suggestions?

In general, thanks for a promising replacement for py2exe.

--
Don Dwiggins
Advanced Publishing Technology

_______________________________________________
PyInstaller mailing list
[email protected]
http://lists.hpcf.upr.edu/mailman/listinfo/pyinstaller

Reply via email to