Re: [Pythonmac-SIG] Installing modules with py2app

2011-02-06 Thread Michael Rans
Try putting env={} in subprocess For MacOS (and probably Linux if it were running through Freeze or the like), you need to pass env as an empty dict. For Windows and py2exe, you pass env as None. I don't know if this post will get through as I'm not intending to subscribe to this list, but I

Re: [Pythonmac-SIG] Installing modules with py2app

2011-01-20 Thread Christopher Barker
On 1/20/11 2:10 PM, Mier, Alejandro wrote: The problem is that, even though subprocess.call("python setup.py install") picks up the system python (sys.executable has the expected value), it still loads the modules from the site-packages.zip in the .app bundle. I suspect that you are getting e

Re: [Pythonmac-SIG] Installing modules with py2app

2011-01-20 Thread Mier, Alejandro
nces+alejandro=ti@python.org [mailto:pythonmac-sig-bounces+alejandro=ti@python.org] On Behalf Of Christopher Barker Sent: Tuesday, January 18, 2011 6:02 PM To: pythonmac-sig@python.org Subject: Re: [Pythonmac-SIG] Installing modules with py2app On 1/18/11 2:47 PM, Mier, Alejandro wrote: > I mo

Re: [Pythonmac-SIG] Installing modules with py2app

2011-01-18 Thread Christopher Barker
On 1/18/11 2:47 PM, Mier, Alejandro wrote: I modified the included distutils files, and managed to get this stack trace Traceback (most recent call last): File "distutils/dist.py", line 837, in get_command_class __import__ (module_name) File "distutils/command/install.py", line 21, in

Re: [Pythonmac-SIG] Installing modules with py2app

2011-01-18 Thread Christopher Barker
On 1/18/11 9:05 AM, João Vale wrote: Do you have distutils installed? It usually doesn't come bundled with Python. huh? Sure it does -- distutils has been standard in Python for many many years. So that's not it. Besides, if you can run it unbundled, you have the packages you need, the que

Re: [Pythonmac-SIG] Installing modules with py2app

2011-01-18 Thread Mier, Alejandro
mac-sig@python.org Subject: Re: [Pythonmac-SIG] Installing modules with py2app On Tue, Jan 11, 2011 at 9:42 AM, Mier, Alejandro wrote: > Hello > > I have a script that installs Python, and then installs some modules with: > > subprocess.call("python setup.py install") > > The

Re: [Pythonmac-SIG] Installing modules with py2app

2011-01-18 Thread Sridhar Ratnakumar
On Tue, Jan 11, 2011 at 9:42 AM, Mier, Alejandro 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

Re: [Pythonmac-SIG] Installing modules with py2app

2011-01-18 Thread João Vale
> Chris Weisiger > Sent: Tuesday, January 18, 2011 10:08 AM > Cc: pythonmac-sig@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 pyth

Re: [Pythonmac-SIG] Installing modules with py2app

2011-01-18 Thread Mier, Alejandro
Sent: Tuesday, January 18, 2011 10:08 AM Cc: pythonmac-sig@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

Re: [Pythonmac-SIG] Installing modules with py2app

2011-01-18 Thread Chris Weisiger
Did you build the app bundle with the Python that came with OSX, or did you install a separate Python install from 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

[Pythonmac-SIG] Installing modules with py2app

2011-01-15 Thread Mier, Alejandro
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 distut