Skip to content

Commit 3d28857

Browse files
authored
Merge pull request #401 from jmadler/v0.17.x
Bail if building with Py3
2 parents 0dec675 + e2e6792 commit 3d28857

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)