~ubuntu-branches/debian/experimental/protobuf/experimental

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: Disable automatic setuptools download
 For Debian builds, we must use the packaged setuptools, and
 if that is not available, fail hard instead of downloading
 and installing from the internet the needed version
Author: Iustin Pop <iustin@debian.org>
Bug-Debian: http://bugs.debian.org/593269
Forwarded: not-needed
Last-Update: 2010-08-18
--- a/python/ez_setup.py
+++ b/python/ez_setup.py
@@ -99,9 +99,10 @@
     """
     was_imported = 'pkg_resources' in sys.modules or 'setuptools' in sys.modules
     def do_download():
-        egg = download_setuptools(version, download_base, to_dir, download_delay)
-        sys.path.insert(0, egg)
-        import setuptools; setuptools.bootstrap_install_from = egg
+        print >>sys.stderr, (
+        "The required version of setuptools (>=%s) is not available, and\n"
+        "can't be installed during Debian package builds.") % version
+        sys.exit(2)
     try:
         import pkg_resources
     except ImportError: