[Pythonmac-SIG] Upgrading to Python 2.4 and handling packages (e.g. Numeric, wxPython, etc.)

Christopher Barker Chris.Barker at noaa.gov
Fri Mar 24 18:16:54 CET 2006


Louis Pecora wrote:

>> >> bdist_mpkg
>>
>> at the shell prompt, all by itself (it's a script) should do it. If 
>> there is a setup.py in the directory you type that in, it should use it.
>>
> Did that.  Python can't find bdist_mpkg .

Python can't find it?, or the shell can't find it? There is a script in 
usr/local/bin called bdist_mpkg and a module that should have been 
installed with Py2App also called bdist_mpkg. If you post your output, 
maybe we can figure out what's wrong with your installation.

For me, the bdist_mpkg script looks like this:

#!/usr/local/bin/python
from bdist_mpkg.scripts.script_bdist_mpkg import main
main()

Pretty simple. If I start up Python, I can see where the module is 
installed:

Python 2.4.1 (#2, Mar 31 2005, 00:05:10)
[GCC 3.3 20030304 (Apple Computer, Inc. build 1666)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
 >>> import bdist_mpkg
 >>> bdist_mpkg.__file__
'/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/py2app/bdist_mpkg/__init__.pyc'

I suspect that you installed a PY2App that doesn't match the python you 
are using, so it's installed in the wrong place.

I'm really looking forward to when (soon!) we have the Universal 2.4.3 
and we can all just work hard to support that ONE version!

-Chris






-- 
Christopher Barker, Ph.D.
Oceanographer
                                     		
NOAA/OR&R/HAZMAT         (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