Am 30.04.2012, 20:08 Uhr, schrieb Chris Barker <chris.bar...@noaa.gov>:

I'd go farther with this...

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

Maybe it doesn't but I got an error when I moved the relevant part of
setup.py over to a new file generated by py2applet. It was complaining about
the Extensions not being Extension instances.
right...

dependency and build and package the shared libraries automatically?
note here -- it should include them, but having it both build and
package in one step may not work...

Happy with multiple steps.

please post:
your setup.py

And my feeble attempt:

http://pastebin.com/ASzHipCe

OK -- to keep this all cleaner, I'd completely separate building and
py2app-ing. So the steps would be:

python setup.py install (or install, or develop)

This runs fine, as long as SIP is installed. How do I add "requires" to the setup?

make sure it's all running in that environment. Then:
python setup.py py2app
having py2app use the distutils API was a nifty idea, but I'm not sure
it's bought us anythign bu confusion in practice. The the setup.py
would either be completely separate, or you can have a clause in
there:
if "py2app" in sys.argv: (or somethign like that)
    # do the py2app stuff here
they key is not to try to use the same call to distutils.setup to
build, install, and py2app.

I usually end up with essentially completely different setup.py for
installing, py2exe and py2app, though they may be in the same file or

No problem with that. What dance should I be doing to get py2applet to generate the right script once everything has been built. Am I right in thinking that I need to write my own script to generate a pkg or dmg? Easy enough to adapt the existing code from setup I guess if only I knew where to plug it in.

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@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG

Reply via email to