[Pythonmac-SIG] Help with Py2app
Chris Barker
chris.barker at noaa.gov
Mon Apr 30 23:16:51 CEST 2012
(dont' forget to include pythonmac-sig -- it's not doen with a standard reply.)
On Mon, Apr 30, 2012 at 2:07 PM, Charlie Clark
<charlie.clark at clark-consulting.eu> wrote:
>> That's a setuptools (or distribute) feature, and should be in the
>> primary setup.py that the main developer uses on other platforms.
>
> Well, where should it go in the existing setup.py? I just tried it in the
> args but no joy.
it goes in "requires" somwhere -- check the setuptools docs.
>>>> python setup.py py2app
>> yup -- a dmg is easy, a one liner, something like:
>> /usr/bin/hdiutil create -srcfolder dist -volname "Name_of_the_volume"
>> -ov "The_name_of_the_file"
>> there is bdist.mpkg, but I think that's only for python packages, not
>> app bundles.
>
>
> Can I add that to my build script?
you can use an os.system callina python script, but I usually jsut run
it separately.
> I'm now getting the same error as when running the original setup.py
>
> raise TypeError("Don't know how to handle '%s'" % repr(src))
> TypeError: Don't know how to handle
> ''/Users/charlieclark/Sites/LinkChecker/linkchecker-gui''
what is link-checker-gui ?
from that error, it looks like neither a module (clearly not - it's
not called *.py) or a package (would be a directory).
Also, it's in your home dir -- so why is it getting found by modulegraph?
> At least I've got it pointing at the right script. So it can't resolve the
> dependencies?
that looks like something else than not finding a dependency.
-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 at noaa.gov
More information about the Pythonmac-SIG
mailing list