summaryrefslogtreecommitdiff
blob: 64ad6888abe6f89130b0c7aa0b55cf3fc55be484 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
--- setup.py
+++ setup.py
@@ -28,33 +28,22 @@
 # Pull in the tools we need.
 import sys
 
-if sys.hexversion < 0x03000000:
-    # In Py 2.x, use setuptools.
-    from ez_setup import use_setuptools
-    use_setuptools()
-    
-    from setuptools import setup
-    from distutils.core import Extension
+from ez_setup import use_setuptools
+use_setuptools()
 
-    more_setup_args = dict(
-        entry_points = {
-            'console_scripts': [
-                'coverage = coverage:main',
-                ]
-            },
-        
-        # We need to get HTML assets from our htmlfiles dir.
-        zip_safe = False,
-        )
-else:
-    # No setuptools yet for Py 3.x, so do without.
-    from distutils.core import setup, Extension
+from setuptools import setup
+from distutils.core import Extension
+
+more_setup_args = dict(
+    entry_points = {
+        'console_scripts': [
+            'coverage = coverage:main',
+            ]
+        },
 
-    more_setup_args = dict(
-        scripts = [
-            'scripts/coverage',
-            ],
-        )
+    # We need to get HTML assets from our htmlfiles dir.
+    zip_safe = False,
+    )
 
 
 # Get or massage our metadata.