Hi Allen,
This is the patch I came up with.
Maybe you'll have more inspiration :-)
Greetings
Alexandre
cat debian/patches/patch_out_pkg_resources.patch
--- a/tests/input/source.rst
+++ b/tests/input/source.rst
@@ -7,15 +7,7 @@
tmpeggs = tempfile.mkdtemp()
- try:
- import pkg_resources
- except ImportError:
- ez = {}
- exec urllib2.urlopen('http://peak.telecommunity.com/dist/ez_setup.py'
- ).read() in ez
- ez['use_setuptools'](to_dir=tmpeggs, download_delay=0)
-
- import pkg_resources
+ print("Hello World")