aboutsummaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorPieter Krul <github@krul.cc>2018-10-23 00:03:45 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2018-10-23 20:23:33 +0300
commit87355c81326edd253f433f08e8d58f9df059951f (patch)
tree6004a99d382a4c76e26d8ca93d75c872ac772104 /setup.py
parentf1546e289c00d69d16cb6e036154918225118dae (diff)
downloadmeson-87355c81326edd253f433f08e8d58f9df059951f.zip
meson-87355c81326edd253f433f08e8d58f9df059951f.tar.gz
meson-87355c81326edd253f433f08e8d58f9df059951f.tar.bz2
Throw error to unsupported Python versions before importing modules from mesonbuild
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index 41933cb..783b2ce 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