From: whitequark Date: Thu, 13 Dec 2018 07:47:07 +0000 (+0000) Subject: setup: check Python version. X-Git-Tag: working~309 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=48330f874210744fa91c922af4da1b6f0262198a;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",