how to distribute python app with glade GUI?
I'm trying to distribute this app that I wrote in python. The application consists of 2 python scripts. 2 .glade
files and 1 .png
file.
Here is my dir structure on this project
vasm/
vasmcc.py
src/
vasm.py
gui/
vasm.glade
vasmset.glade
logo.png
vasmcc
is just the python 开发者_JAVA技巧script for the gui... the real python module would be vasm.py
.
My question is, how do I distribute this so that it includes the .glade
and the .png
files?
By distribute I mean provide an installable source package that can be installed on to another system.
You should take a look at distutils. You can tell it to install all kinds of files, not just the source code itself. For the user, installing your program then comes down to
$ python setup.py install
and it's even pretty easy to, say, create RPM packages with distutils.
精彩评论