« Return to Thread: Py2App and PyQT

Re: Py2App and PyQT

by Christopher Barker :: Rate this Message:

Reply to Author | View in Thread

Eddie L wrote:
> I had the exact same problem and fixed it adding that line to the __boot__.py
> file in the app's package contents, but I was wondering if there was a way
> to tell py2app to do this automatically in the setup script because
> otherwise I'd have to do it manually every time I build my project.

clearly a bad idea!

> Py2exe
> has a custom boot script option but it doesn't look like py2app does.

I haven't seen that option -- but you're right it should. Some quick
poking did not make it clear to me where py2app builds the __boot.__py
file though.

Anyway, you can always hack around this by adding some code to your
setup.py that changes __boot__.py after building the app.

I find I have to add a lot of extra fiddling code to accommodate eggs
and other deficiencies in py2app, but I don't have the time to get to
know py2app enough to submit a patch, so there you go.

-Chris




--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

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

 « Return to Thread: Py2App and PyQT