python - py2app isn't creating a standalone version of my app -


i using buildout create local python environment, , using local python create app py2app. but, when go .app file, contents/macos/, there shortcut system python. want py2app somehow take local python depends on itself, not on system python.

so question is: how can fix py2app bundle custom local version of python2.7 app totally standalone, regardless of local python version?

please let me know if more information helpful.

my setup.py

from setuptools import setup  app = ['main.py'] data_files = ['src/icon.xib'] options = {             'argv_emulation': true,             'packages': [ 'requests' ],             'iconfile':'src/myapp.icns',             'plist': {'cfbundleshortversionstring':'0.1.0',                       'lsuielement': true                      }           }  setup(     name='myapp',     package_dir = {'':'src'},     app=app,     data_files=data_files,     options={'py2app': options},     setup_requires=['py2app'], ) 

py2app not include system files, such python installation in /system/library/frameworks, in application bundle.

to create bundle includes python need install separate version of python (and libraries use).

however, note app created system version of python should work on machines same release of osx, or later release.


Comments