[Pythonmac-SIG] Installing modules with py2app
Christopher Barker
Chris.Barker at noaa.gov
Fri Jan 21 00:03:16 CET 2011
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 environment variables set by py2app,
rather that the user's raw environment.
Maybe it shouldn't be a subprocess -- what happens if you do a simple:
os.system("python setup.py install")
you also may need to make sure the working dir is correct:
os.system("cd the/full/path/to/setup; python setup.py install)
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (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