From 48330f874210744fa91c922af4da1b6f0262198a Mon Sep 17 00:00:00 2001 From: whitequark Date: Thu, 13 Dec 2018 07:47:07 +0000 Subject: [PATCH] setup: check Python version. --- setup.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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", -- 2.30.2