On 4/25/2010 3:44 PM, Tim Diggins wrote:
Brilliant! I patched the trunk, and it worked fine - both onefile and
onedir (with moves of files...)

Two additional questions (not related to wx, only to mac):

1) The .app is getting made (it seems to me) in the wrong location: It
should be made in the "dist" directory (as it is a distributable);
however, it is being made one directory ABOVE the project directory so I
do the following after the build:
mv ../PROJECT.app dist/PROJECT.app

This is a bug of the BUNDLE() class in Build.py. More generically, all classes exported to the .spec usually allow the spec itself to specify the full path of the resulting file (or directory, in this case), so BUNDLE() should probably be modified to receive the directory name as argument, and the spec should then be generated so to use os.path.join("dist", "foobar.app").

2) I'm keen to use the onedir, as that makes some things easier (and
onefile brings no benefits that I can see).
At present I'm just moving dist/PROJECT/* to
dist/PROJECT.app/Contents/MacOS/
but it would be better to try to fix the situation for MacOS - shall I
have a look and see if I can solve #155 in the source, following your
comments?

Sure! It really should not be difficult. Have a look at how COLLECT() copies files around, and do something like that for BUNDLE().
--
Giovanni Bajo
Develer S.r.l.
http://www.develer.com

--
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.

Reply via email to