Andrea,
I added some post compile code but it is getting executed before the setup() call, shouldn't the code be added after:
# And we are done. That's a setup script
# Run setup standalone...
if __name__ == "__main__":
setup()
I noted that e.g. library.zip and some other files stays around, so I do this:
cwdFolder = os.getcwd()
libFile = os.path.join(cwdFolder, 'dist\\library.zip')
if os.path.exists(libFile):
print 'deleting duplicate files'
os.remove(libFile)
os.remove(os.path.join(cwdFolder, 'dist\\bz2.pyd'))
os.remove(os.path.join(cwdFolder, 'dist\\select.pyd'))
os.remove(os.path.join(cwdFolder, 'dist\\unicodedata.pyd'))
But if I have this before the setup() call I still see the files.
Note that these files only stick around if I run "\python26\python setup.py py2exe" from the command line, if I compile from within gui2exe they are not there.
Can you see where I go wrong?
Werner