开发者

how to distribute python app with glade GUI?

开发者 https://www.devze.com 2022-12-15 13:48 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号