From: whitequark Date: Thu, 13 Dec 2018 07:47:07 +0000 (+0000) Subject: setup: check Python version. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3749a4aee11dea62bcea49e9e73a7181ff829a81;p=nmigen.git setup: check Python version. --- diff --git a/setup.py b/setup.py index 2ab0a80..c406779 100644 --- 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",