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 _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
