Skip to content

Commit e2e6792

Browse files
author
Jordan Adler
committed
Bail if building with Py3
1 parent dadf17b commit e2e6792

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
except ImportError:
1313
from distutils.core import setup
1414

15+
if sys.argv[-1] == 'sdist' and sys.version_info[0] >= 3:
16+
print('ERROR: You must build python-future with Python 2', file=sys.stderr)
17+
sys.exit(1)
1518

1619
if sys.argv[-1] == 'publish':
1720
os.system('python setup.py sdist upload')

0 commit comments

Comments
 (0)