setup: check Python version.
authorwhitequark <cz@m-labs.hk>
Thu, 13 Dec 2018 07:47:07 +0000 (07:47 +0000)
committerwhitequark <cz@m-labs.hk>
Thu, 13 Dec 2018 07:47:07 +0000 (07:47 +0000)
setup.py

index 2ab0a80c2e27ecd710651a4b9378a478944a8536..c4067791e8cf0d06aaf81703d726ca41e1a66031 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -1,9 +1,10 @@
-import os
-from os import path
-
 from setuptools import setup, find_packages
 
 
+if sys.version_info[:3] < (3, 7):
+    raise SystemExit("nMigen requires Python 3.7+")
+
+
 setup(
     name="nmigen",
     version="0.1",