1 |
arfrever 09/09/10 01:20:14 |
2 |
|
3 |
Added: distribute-0.6.1-provide_setuptools.patch |
4 |
distribute-0.6.1-USER_SITE.patch |
5 |
Log: |
6 |
Version bump. |
7 |
(Portage version: 14221-svn/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 dev-python/setuptools/files/distribute-0.6.1-provide_setuptools.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/setuptools/files/distribute-0.6.1-provide_setuptools.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/setuptools/files/distribute-0.6.1-provide_setuptools.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: distribute-0.6.1-provide_setuptools.patch |
16 |
=================================================================== |
17 |
--- setup.py |
18 |
+++ setup.py |
19 |
@@ -28,7 +28,7 @@ |
20 |
before_install() |
21 |
|
22 |
dist = setup( |
23 |
- name="distribute", |
24 |
+ name="setuptools", |
25 |
version=VERSION, |
26 |
description="Download, build, install, upgrade, and uninstall Python " |
27 |
"packages -- easily!", |
28 |
--- setuptools/package_index.py |
29 |
+++ setuptools/package_index.py |
30 |
@@ -143,7 +143,7 @@ |
31 |
yield urlparse.urljoin(url, htmldecode(match.group(1))) |
32 |
|
33 |
user_agent = "Python-urllib/%s distribute/%s" % ( |
34 |
- urllib2.__version__, require('distribute')[0].version |
35 |
+ urllib2.__version__, require('setuptools')[0].version |
36 |
) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 dev-python/setuptools/files/distribute-0.6.1-USER_SITE.patch |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/setuptools/files/distribute-0.6.1-USER_SITE.patch?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/setuptools/files/distribute-0.6.1-USER_SITE.patch?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: distribute-0.6.1-USER_SITE.patch |
48 |
=================================================================== |
49 |
http://bitbucket.org/tarek/distribute/changeset/2545492098ff/ |
50 |
|
51 |
--- distribute_setup.py |
52 |
+++ distribute_setup.py |
53 |
@@ -13,7 +13,11 @@ the appropriate options to ``use_setupto |
54 |
|
55 |
This file can also be run as a script to install or upgrade setuptools. |
56 |
""" |
57 |
-from site import USER_SITE |
58 |
+try: |
59 |
+ from site import USER_SITE |
60 |
+except ImportError: |
61 |
+ USER_SITE = None |
62 |
+ |
63 |
import sys |
64 |
import os |
65 |
import time |
66 |
@@ -199,7 +203,7 @@ def _under_prefix(location): |
67 |
if len(args) > index: |
68 |
top_dir = args[index+1] |
69 |
return location.startswith(top_dir) |
70 |
- elif option == '--user': |
71 |
+ elif option == '--user' and USER_SITE is not None: |
72 |
return location.startswith(USER_SITE) |
73 |
return True |