[Pythonmac-SIG] Installing modules with py2app

Mier, Alejandro alejandro at ti.com
Tue Jan 11 18:42:34 CET 2011


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!


More information about the Pythonmac-SIG mailing list