Skip to content

Commit 3f1eeb5

Browse files
committed
Merge pull request softlayer#131 from CrackerJackMack/setup-fix
Make setup more sane around 2to3
2 parents c0e60b6 + 4805e14 commit 3f1eeb5

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

setup.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
import sys
2+
import os
3+
14
try:
25
from setuptools import setup
36
except ImportError:
4-
from distutils.core import setup # NOQA
5-
import sys
6-
import os
7+
print("Distribute is required for install:")
8+
print(" http://python-distribute.org/distribute_setup.py")
9+
sys.exit(1)
710

811
# Not supported for Python versions < 2.6
912
if sys.version_info <= (2, 6):
@@ -16,7 +19,6 @@
1619
extra['use_2to3'] = True
1720

1821
requires = [
19-
'distribute',
2022
'prettytable >= 0.7.0',
2123
'docopt == 0.6.1',
2224
'requests'

0 commit comments

Comments
 (0)