From 87355c81326edd253f433f08e8d58f9df059951f Mon Sep 17 00:00:00 2001 From: Pieter Krul Date: Tue, 23 Oct 2018 00:03:45 +0200 Subject: Throw error to unsupported Python versions before importing modules from mesonbuild --- setup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 41933cb28..783b2ceb3 100644 --- a/setup.py +++ b/setup.py @@ -16,13 +16,12 @@ import sys -from mesonbuild.coredata import version - if sys.version_info < (3, 5, 0): print('Tried to install with an unsupported version of Python. ' 'Meson requires Python 3.5.0 or greater') sys.exit(1) +from mesonbuild.coredata import version from setuptools import setup # On windows, will create Scripts/meson.exe and Scripts/meson-script.py -- cgit v1.2.3