Module to distribute the code with distutils
For running Pyinstaller, use: # From Pytomo sources directory find . -name ‘.pyc’ -delete rm -r build # **From Pyinstaller repository* python2.5 Makespec.py –onefile -p ~/streaming/pytomo/Pytomo/ -p ~/streaming/pytomo/Pytomo/pytomo/ -o ~/streaming/pytomo/Pytomo/ ~/streaming/pytomo/Pytomo/bin/pytomo # Check differences diff ~/streaming/pytomo/Pytomo/pytomo_named.spec ~/streaming/pytomo/Pytomo/pytomo.spec # Run with automatic naming of exe python2.5 Build.py ~/streaming/pytomo/Pytomo/pytomo_named.spec
# for MAC: import sys if sys.platform.startswith(“darwin”):
- app = BUNDLE(exe,
- name=os.path.join(‘dist’, ‘NAME.app’), version=version)