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
Created attachment 484441
Patches auto.py to skip test of whether gtk is an external module
Description of problem: 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.
Python programs that use python-
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): distutils- extra-2. 22-2.fc15. noarch
python-
How reproducible:
Always
Steps to Reproduce: /launchpad. net/dexter- rolodex
1. Try building, say, the Dexter source, without DISPLAY set
https:/
Actual results:
Fails when gtk is imported
Expected results:
Should just work
Additional info: