Skip to content
This repository was archived by the owner on Jul 5, 2023. It is now read-only.

Commit 25b7b1f

Browse files
committed
Throw clear install error on unsupported Python versions
Fixes #7.
1 parent de66b1e commit 25b7b1f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

setup.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
import sys
2+
if sys.version_info[0] < 3 or sys.version_info[1] < 3:
3+
sys.exit('Error: typed_ast only runs on Python 3.3 and above.')
4+
15
try:
26
from setuptools import setup, Extension
37
except ImportError:

0 commit comments

Comments
 (0)