Created attachment 484441 [details]
Patches auto.py to skip test of whether gtk is an external module
Description of problem:
Python programs that use python-distutils-extra to manage their build and installation process cannot currently be built on RPM builders (e.g. rpm-build) because DISPLAY will be unset, while distutils-extra's automatic dependency tracker would attempt to import every module used by the package to classify which of the dependencies are internal, and which external.
This unfortunately would fail since 'import gtk' throws a runtime exception without a working display. The patch attached (for distutils-extra 0.22) fixes that by short-circuiting the test, marking gtk an external module without testing it.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Try building, say, the Dexter source, without DISPLAY set
Fails when gtk is imported
Should just work
ps: I subscribed python-distutils-extra for upstream release monitoring; a new bug should automatically be opened today about version 2.26 being available. I've not checked whether it fixes this issue, probably not.
I will add the patch. Thanks.
python-distutils-extra-2.26-1.fc14 has been submitted as an update for Fedora 14.
python-distutils-extra-2.26-1.fc15 has been submitted as an update for Fedora 15.
python-distutils-extra-2.26-1.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.
python-distutils-extra-2.26-1.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report.