I have written my program in python. It is written across seven files and in three of the files I import a custom package. The thing is I cant build my program into an exe. I have tried pyinstaller 1.5.1 and py2exe. I have followed every tutorial I could find but with no success. Every time I have tried when I go to run the exe created I get an error message saying it cannot find my custom package. I think I have just not been able to get the complete package to be built into the exe. Please help.
from distutils.core import setup
import py2exe, sys, os
sys.argv.append('py2exe')
mfcfiles = [os.path.join(mfcdir, i) for i in ["mfc90.dll", "mfc90u.dll", "mfcm90.dll", "mfcm90u.dll", "Microsoft.VC90.MFC.manifest"]]
data_files = [("Microsoft.VC90.MFC", mfcfiles),]
setup(
data_files = data_files,
options = {'py2exe': {'optimize': 2}},
windows = [{'script': "LoadFilesGUI.py"}],
zipfile = "shared.lib",
)
another:
from distutils.core import setup
import py2exe, sys, os
sys.argv.append('py2exe')
setup(
options = {'py2exe': {'optimize': 2}},
windows = [{'script': "LoadFilesGUI.py"}],
zipfile = None,
console=['LoadFilesGUI.py'],
)