[drats_users] d-rats

Dan Smith
Thu Feb 12 07:15:53 PST 2009


> I had been stuck figuring out where to get ez_setup.py (which is  
> different than easy_setup.py which was easier to find links to). I  
> finally go that done and now get this:
> 
> Mnementh:trunk drats$ sudo python setup.py bdist_mpkg --open
> Password:
> Traceback (most recent call last):
>    File "setup.py", line 17, in <module>
>      import py2app_mpkg
>    File "setup-lib/py2app_mpkg.py", line 4, in <module>
>      from py2app.util import skipjunk
>    File "/Users/drats/src/py2app/trunk/py2app/__init__.py", line 32,  
> in <module>
>      import py2app.install
>    File "/Users/drats/src/py2app/trunk/py2app/install.py", line 15, in  
> <module>
>      import py2app.build_app
>    File "/Users/drats/src/py2app/trunk/py2app/build_app.py", line 7,  
> in <module>
>      require("altgraph", "modulegraph", "macholib")
>    File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/ 
> lib/python2.5/site-packages/pkg_resources.py", line 626, in require
>      needed = self.resolve(parse_requirements(requirements))
>    File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/ 
> lib/python2.5/site-packages/pkg_resources.py", line 524, in resolve
>      raise DistributionNotFound(req)  # XXX put more info here
> pkg_resources.DistributionNotFound: macholib

Ah.  You want to get py2app from macports, which will bring macholib as
well.  I'm putting together an end-to-end document about how to setup
the whole environment, plus the changes you need to make to macports to
build relocatable libraries.  I'm not quite ready to share it yet, but
when I do, maybe it will help.

The other option is, of course, to just build a package (wrapping up
/opt/local, but with a different name) instead of an app, which doesn't
require relocatable libraries and would likely be easier.  It's not
quite as nice for the user though.

-- 
Dan Smith
dsmith#danplanet.com, s/#/@/
www.danplanet.com
KK7DS




More information about the drats_users mailing list