|
From: <Ale...@la...> - 2011-02-08 11:15:11
|
Hello!
I have small application that requires matplotlib and I would like to use py2exe to convert it into .exe. with my Python (x,y) 2.6.5.1 setup. This already works for me.
There is only a single thing that I would like to improve. After using py2exe, the dist directory contains a sub-folder called mpl-data (which is required by my program).
Is it possible to move this folder and its content into library.zip? What do I have to change in the py2exe setup?
Here is what I use:
from distutils.core import setup
import py2exe
import matplotlib
py2exe_options = dict(
excludes=['_ssl',
'pyreadline', 'pdb', 'difflib', 'doctest',
"Tkconstants","Tkinter","tcl","wx","pytz"
'optparse', 'pickle'],
includes=['sip'],
bundle_files=2,
compressed=True,
)
setup(windows=['my_app.py'],\
data_files=matplotlib.get_py2exe_datafiles(),\
options={"py2exe":py2exe_options}
)
Thank you!
Best regards,
Alex
|