[pygtk] preparing a PyGTK app for PyPi

Alessandro Dentella sandro at e-den.it
Fri Sep 4 23:47:53 WST 2009


On Fri, Sep 04, 2009 at 05:13:30PM +0200, Arjan Molenaar wrote:
> Hi,
>
> seems like nobody responded ;/. Anyway, I do not set a dependency in  
> setup.py because of the same reason you describe below. I just describe 
> it in the description field, so it shows up on the PyPI.
>
> See http://pypi.python.org/pypi/gaphor.
>

I ended up adding a test in setup.py for 'import gtk'. It that fails I issue
a warning end exit from the script.

It seems setuptools can only detect presence of packages if it finds the
metadata and (at least under Ubuntu) pygtk is not packaged with metadata, so
that it's never detected.

Moreover I'm convinced that setuptools fails implementing the dependencies
in some cases. I described one in my comment on the (already) open bug 
http://bugs.python.org/setuptools/issue17 .



sandro
*:-)




-- 
Sandro Dentella  *:-)
http://sqlkit.argolinux.org        SQLkit home page - PyGTK/python/sqlalchemy


More information about the pygtk mailing list