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

Louis Pecora pecora at anvil.nrl.navy.mil
Thu Mar 23 20:35:36 CET 2006


Christopher Barker wrote:
> Why don't you build a package out of this? If you install Py2app, you 
> can run: bdist_mpkg and you'll get a nice package that you can give to 
> Bob to put on the site.
>
>
OK, I tried this.  installed Py2app (2.4.1 Frameworks version) no 
problem.  But now I have trouble using bdist_mpkg.  I tried two ways 
after cd to the folder with the setup.py file, one from the terminal 
prompt and one inside python (the web page is not very clear to me on 
this or I'm just dense).  I get errors both ways:


louispec% python setup.py bdist_mpkg --open
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: invalid command 'bdist_mpkg'
Exit 1

louispec% python
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
 >>> python setup.py bdist_mpkg --open
  File "<stdin>", line 1
    python setup.py bdist_mpkg --open
               ^
SyntaxError: invalid syntax


Any ideas? 


-- 
Cheers,

Lou Pecora

Code 6362
Naval Research Lab
Washington, DC  20375
USA
Ph:  +202-767-6002
email:  pecora at anvil.nrl.navy.mil



More information about the Pythonmac-SIG mailing list