Comment 5 for bug 735408

Revision history for this message
In , Michel (michel-redhat-bugs) wrote :

Created attachment 484441
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):
python-distutils-extra-2.22-2.fc15.noarch

How reproducible:
Always

Steps to Reproduce:
1. Try building, say, the Dexter source, without DISPLAY set
   https://launchpad.net/dexter-rolodex

Actual results:
Fails when gtk is imported

Expected results:
Should just work

Additional info: