summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-08-09 21:51:41 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-08-09 21:51:41 +0000
commit941be0cf041e1a8826404690fa063e2fa252e34f (patch)
tree6e1f9b05c25d171e05e8a4b7d6c606d340c771ea /dev-python/setuptools/files
parentMasking net-dialup/isdn4k-utils for QA removal. (diff)
downloadhistorical-941be0cf041e1a8826404690fa063e2fa252e34f.tar.gz
historical-941be0cf041e1a8826404690fa063e2fa252e34f.tar.bz2
historical-941be0cf041e1a8826404690fa063e2fa252e34f.zip
Version bump.
Package-Manager: portage-13958-svn/cvs/Linux x86_64
Diffstat (limited to 'dev-python/setuptools/files')
-rw-r--r--dev-python/setuptools/files/distribute-0.6-sandbox.patch91
-rw-r--r--dev-python/setuptools/files/setuptools-0.6_rc8-svn-1.5.patch30
2 files changed, 91 insertions, 30 deletions
diff --git a/dev-python/setuptools/files/distribute-0.6-sandbox.patch b/dev-python/setuptools/files/distribute-0.6-sandbox.patch
new file mode 100644
index 000000000000..9807ffa4ecf9
--- /dev/null
+++ b/dev-python/setuptools/files/distribute-0.6-sandbox.patch
@@ -0,0 +1,91 @@
+--- distribute_setup.py
++++ distribute_setup.py
+@@ -174,12 +174,14 @@
+ return open(path).read() == content
+
+ def _rename_path(path):
++ return
+ new_name = path + '.OLD.%s' % time.time()
+ log.warn('Renaming %s into %s' % (path, new_name))
+ os.rename(path, new_name)
+ return new_name
+
+ def _remove_flat_installation(placeholder):
++ return
+ if not os.path.isdir(placeholder):
+ log.warn('Unkown installation at %s' % placeholder)
+ return False
+@@ -212,6 +214,7 @@
+ return True
+
+ def after_install(dist):
++ return
+ log.warn('After install bootstrap.')
+ placeholder = dist.get_command_obj('install').install_purelib
+ if not os.path.exists(placeholder):
+@@ -256,10 +259,12 @@
+ return True
+
+ def before_install():
++ return
+ log.warn('Before install bootstrap.')
+ fake_setuptools()
+
+ def fake_setuptools():
++ return
+ log.warn('Scanning installed packages')
+ try:
+ import pkg_resources
+@@ -324,52 +329,6 @@
+
+ def main(argv, version=DEFAULT_VERSION):
+ """Install or upgrade setuptools and EasyInstall"""
+- # let's deactivate any existing setuptools installation first
+- fake_setuptools()
+- try:
+- import setuptools
+- # we need to check if the installed setuptools
+- # is from Distribute or from setuptools
+- if not hasattr(setuptools, '_distribute'):
+- # now we are ready to install distribute
+- raise ImportError
+- except ImportError:
+- egg = None
+- try:
+- egg = download_setuptools(version, delay=0)
+- sys.path.insert(0, egg)
+- import setuptools
+- if not hasattr(setuptools, '_distribute'):
+- placeholder = os.path.split(os.path.dirname(setuptools.__file__))[0]
+- if not placeholder.endswith('.egg'):
+- res = _remove_flat_installation(placeholder)
+- if res:
+- _relaunch()
+- print >> sys.stderr, (
+- "The patch didn't work, Setuptools is still active.\n"
+- "Possible reason: your have a system-wide setuptools installed "
+- "and you are in a virtualenv.\n"
+- "If you are inside a virtualenv, make sure you used the --no-site-packages option"
+- )
+- sys.exit(2)
+- dist = _easy_install(argv, egg)
+- after_install(dist)
+- return
+- #from setuptools.command import easy_install
+- #try:
+- # return easy_install.main(list(argv)+['-v']+[egg])
+- #except DistutilsError:
+- # return sys.exit(2)
+- finally:
+- if egg and os.path.exists(egg):
+- os.unlink(egg)
+- else:
+- if setuptools.__version__ == '0.0.1':
+- print >>sys.stderr, (
+- "You have an obsolete version of setuptools installed. Please\n"
+- "remove it from your system entirely before rerunning this script."
+- )
+- sys.exit(2)
+
+ req = "distribute>="+version
+ import pkg_resources
diff --git a/dev-python/setuptools/files/setuptools-0.6_rc8-svn-1.5.patch b/dev-python/setuptools/files/setuptools-0.6_rc8-svn-1.5.patch
deleted file mode 100644
index 05aaa158d38b..000000000000
--- a/dev-python/setuptools/files/setuptools-0.6_rc8-svn-1.5.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-Index: setuptools/command/egg_info.py
-===================================================================
---- setuptools/command/egg_info.py (revision 61076)
-+++ setuptools/command/egg_info.py (working copy)
-@@ -217,9 +217,9 @@
- data = f.read()
- f.close()
-
-- if data.startswith('8'):
-+ if data.startswith('8') or data.startswith('9'):
- data = map(str.splitlines,data.split('\n\x0c\n'))
-- del data[0][0] # get rid of the '8'
-+ del data[0][0] # get rid of the '8' or '9'
- dirurl = data[0][3]
- localrev = max([int(d[9]) for d in data if len(d)>9 and d[9]]+[0])
- elif data.startswith('<?xml'):
-Index: setuptools/command/sdist.py
-===================================================================
---- setuptools/command/sdist.py (revision 61076)
-+++ setuptools/command/sdist.py (working copy)
-@@ -86,7 +86,7 @@
- f = open(filename,'rU')
- data = f.read()
- f.close()
-- if data.startswith('8'): # subversion 1.4
-+ if data.startswith('8') or data.startswith('9'): # subversion 1.4 or 1.5
- for record in map(str.splitlines, data.split('\n\x0c\n')[1:]):
- if not record or len(record)>=6 and record[5]=="delete":
- continue # skip deleted
-