views:

182

answers:

1

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 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 files and the .png?

By distribute I mean provide an installable source package that can be installed on to another system.

any help is appreciated.tHANKS

+2  A: 

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.

balpha
I've been looking at it... but have no idea where or how to tell it to install the .glade files and where to put them.
M0E-lnx
That's what the package data is for: http://docs.python.org/distutils/setupscript.html#installing-package-data
balpha
I see it... Thanks.. that helps
M0E-lnx