setup.py

alister ware alister.ware at ntlworld.com
Fri Apr 20 09:26:19 EDT 2012


What is the correct way to set the version of my package with distutils 
when i build it using

python setup.py bdist_rpm

I have __version__="x.x.x" in my main programm but if i add

from <prog> import __version__ 

into setup.py if fails when my prog tries to import gi.repository.

I suspect my approach is totally wrong as I am a newbie when it come to 
packaging 

-- 
May you have many handsome and obedient sons.



More information about the Python-list mailing list