from distutils.core import setup
import py2exe, sys, os
sys.argv.append(\'py2exe\')
setup(
options = {\'py2exe\': {\'bundle_files\': 1}},
windows = [{\'script\
I don't know your py2exe tool, but we usually use this way to convert py to exe:
Download and install Standard Python Software: http://www.python.org/download/
Download PyInstaller via link below: http://pyinstaller.python-hosting.com/
Unpack the archive, that you have downloaded! In this examople, the directory of the unpacked files:
In the
directory, run Configure.py.
It must be run before trying to build anything.
Create a spec file for your project:
python Makespec.py -F -p
-F: Produce a single file deployment.
-p : Set base path for import (like using PYTHONPATH).
( e.g.: C:\Program Files\Python24\Lib\ )
: Path to python script.
6 Build your project!
python Build.py
: Path to the specfile, that have been created in step 4!
The full path to :
//.spec
.