[Pythonmac-SIG] Installing modules with py2app
Mier, Alejandro
alejandro at ti.com
Tue Jan 18 17:27:46 CET 2011
Hi
I am using a separate Python install (ActivePython 2.6 ), so that's not it
Thanks
------------------------------
Alejandro Mier y Concha
From: pythonmac-sig-bounces+alejandro=ti.com at python.org [mailto:pythonmac-sig-bounces+alejandro=ti.com at python.org] On Behalf Of Chris Weisiger
Sent: Tuesday, January 18, 2011 10:08 AM
Cc: pythonmac-sig at python.org
Subject: Re: [Pythonmac-SIG] Installing modules with py2app
Did you build the app bundle with the Python that came with OSX, or did you install a separate Python install from python.org<http://python.org> and use that? You have to do the latter; py2app's not allowed to include components of the operating system in the apps it generates. Windows gets around this problem by not having a standard Python install.
HTH
-Chris
On Tue, Jan 11, 2011 at 9:42 AM, Mier, Alejandro <alejandro at ti.com<mailto:alejandro at ti.com>> wrote:
Hello
I have a script that installs Python, and then installs some modules with:
subprocess.call("python setup.py install")
The script works on Windows with py2exe, but gives me this error when using py2app:
File setup.py
from distutils.core import setup
ImportError: No module named distutils.core
I tried explicitly including distutils when building the .app bundle, with python setup.py py2app --packages distutils (and several variations of --includes), but then I get this error:
error: invalid command 'install'
What do I need to do to make this work on mac?
Thanks!
_______________________________________________
Pythonmac-SIG maillist - Pythonmac-SIG at python.org<mailto:Pythonmac-SIG at python.org>
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20110118/4dba4f16/attachment.html>
More information about the Pythonmac-SIG
mailing list