Hello,

I restarted my project from stratch starting with py2applet --make-setup and 
found that the --app and --plugin switches do not work.

Without an argument they will be set to True. This will cause problems but 
py2applet --help is specific enough on this so I could figure out it needs an 
argument (at first I thought these are actually boolean options to select 
either an app or plugin to be built, but in fact they need an argument as the 
app/plugin name).

The real problem however they do not work with an argument either, because 
build_app.py needs an argument here that is a list, so it will end up 
converting the string to list and ultimately fail.

Anyway I attached a patch that fixes this problem, along with a typo ("puglin" 
-> "plugin").

p.s.: apparently these options worked when initially added on 2007-08-29 but 
later they were (perhaps accidentally) removed on 2008-01-06.

p.s.2.: perhaps it would be nicer to handle the fact --app and --plugin 
arguments are strings in another place (ie. outside FixupTargets). I would be 
glad to do that upon request. Theoretically the best way to do it would be to 
expect only strings as "app" and "plugin" and it would work in py2applet 
--make-setup well, but in practice they could break existing setup.py scripts 
created earlier.

-- Attila

Attachment: patch1.patch
Description: Binary data

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to