[Pythonmac-SIG] Help with Py2app

Chris Barker chris.barker at noaa.gov
Mon Apr 30 18:59:59 CEST 2012


On Mon, Apr 30, 2012 at 4:26 AM, Charlie Clark

> I'm trying to update the setup script for the LinkChecker project
> http://linkchecker.sourceforge.net/ because it no longer builds the app and
> does not work reliably in a virtualenv.

darn...

> I am hoping to build a standalone
> app and package it as a DMG as the project author no longer
> has access to Apple hardware.

thanks for contributing in this way!

> although `bin/python setup.py py2app` should in theory be
> sufficient.

it should, yes, though at times I've had to add explicte
most-processing code -- I usually do it in pyton in teh setup.py, but
in some ways makefile might be easier if you're more familiar with
shell scripting. I also use a shell script to build the dmg.


> tried to break out the py2app part into a separate script.

> and followed the py2app documentation it became clear that the script needs
> to be updated to use setuptools, at least for the extensions.

I don't know that py2app reslies on setuptools for anything.

> LinkChecker is a QT project and needs Python-SIP. Unfortunately I haven't
> worked out how the recipe works. Does the py2app automatically detect the
> dependency and build and package the shared libraries automatically?

it shoujld, yes -- the idea of recipies is that they "jsut work" for
the end user. If it's not, then it's a bug -- hopefully someone here
can help you find and fix it.

please post:

your setup.py

the errors you get when running the .app

Also, what I usually do is look inside the generated bundle and see
what's there -- if you find what's missing, you can often figure out
how to fix it.

you can unzip the site-packages zip file, to see what's in there.

HTH,
 -Chris


> Thanks for any help.
>
> Charlie
> --
> Charlie Clark
> Managing Director
> Clark Consulting & Research
> German Office
> Kronenstr. 27a
> Düsseldorf
> D- 40217
> Tel: +49-211-600-3657
> Mobile: +49-178-782-6226
> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
> unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG



-- 

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 at noaa.gov


More information about the Pythonmac-SIG mailing list