1 |
arfrever 09/10/07 15:58:54 |
2 |
|
3 |
Added: coverage-3.1-python-3.patch |
4 |
Log: |
5 |
Version bump. |
6 |
(Portage version: 14510-svn/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 dev-python/coverage/files/coverage-3.1-python-3.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/coverage/files/coverage-3.1-python-3.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/coverage/files/coverage-3.1-python-3.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: coverage-3.1-python-3.patch |
15 |
=================================================================== |
16 |
--- setup.py |
17 |
+++ setup.py |
18 |
@@ -28,33 +28,22 @@ |
19 |
# Pull in the tools we need. |
20 |
import sys |
21 |
|
22 |
-if sys.hexversion < 0x03000000: |
23 |
- # In Py 2.x, use setuptools. |
24 |
- from ez_setup import use_setuptools |
25 |
- use_setuptools() |
26 |
- |
27 |
- from setuptools import setup |
28 |
- from distutils.core import Extension |
29 |
+from ez_setup import use_setuptools |
30 |
+use_setuptools() |
31 |
|
32 |
- more_setup_args = dict( |
33 |
- entry_points = { |
34 |
- 'console_scripts': [ |
35 |
- 'coverage = coverage:main', |
36 |
- ] |
37 |
- }, |
38 |
- |
39 |
- # We need to get HTML assets from our htmlfiles dir. |
40 |
- zip_safe = False, |
41 |
- ) |
42 |
-else: |
43 |
- # No setuptools yet for Py 3.x, so do without. |
44 |
- from distutils.core import setup, Extension |
45 |
+from setuptools import setup |
46 |
+from distutils.core import Extension |
47 |
+ |
48 |
+more_setup_args = dict( |
49 |
+ entry_points = { |
50 |
+ 'console_scripts': [ |
51 |
+ 'coverage = coverage:main', |
52 |
+ ] |
53 |
+ }, |
54 |
|
55 |
- more_setup_args = dict( |
56 |
- scripts = [ |
57 |
- 'scripts/coverage', |
58 |
- ], |
59 |
- ) |
60 |
+ # We need to get HTML assets from our htmlfiles dir. |
61 |
+ zip_safe = False, |
62 |
+ ) |
63 |
|
64 |
|
65 |
# Get or massage our metadata. |