This is only a test case for a larger system. I have created an app that freezes itself. setup.py ------------ from setuptools import setup APP = ['freezer.py'] DATA_FILES = [] OPTIONS = {'argv_emulation': True, 'no_chdir': True, 'optimize': True} setup( app=APP, data_files=DATA_FILES, options={'py2app': OPTIONS}, setup_requires=['py2app'], )
freezer.py -------------- import os os.system('python setup.py py2app') Running: python freezer.py works as expected. But the frozen app does not work: > mv dist run > run/freezer.app/Contents/MacOS/freezer Traceback (most recent call last): File "setup.py", line 1, in <module> from setuptools import setup ImportError: No module named setuptools Note that the error is not comming from the frozen app but from the copy of Python being run by the frozen app in the os.system call. Jeffery G. Smith MedPlus, A Quest Diagnostics Company | Senior SCM Specialist | 4690 Parkway Drive | Mason, OH 45040 USA | phone +1.513.204.2601 | fax +1.513.229.5505 | mobile +1.513.335.1517 | jsm...@medplus.com | www.MedPlus.com <http://www.medplus.com/> Please think about resource conservation before you print this message Confidentiality Notice: The information contained in this electronic transmission is confidential and may be legally privileged. It is intended only for the addressee(s) named above. If you are not an intended recipient, be aware that any disclosure, copying, distribution or use of the information contained in this transmission is prohibited and may be unlawful. If you have received this transmission in error, please notify us by telephone (513) 229-5500 or by email (postmas...@medplus.com). After replying, please erase it from your computer system.
_______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig