diff options
author | Pieter Krul <github@krul.cc> | 2018-10-23 00:03:45 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-10-23 20:23:33 +0300 |
commit | 87355c81326edd253f433f08e8d58f9df059951f (patch) | |
tree | 6004a99d382a4c76e26d8ca93d75c872ac772104 /setup.py | |
parent | f1546e289c00d69d16cb6e036154918225118dae (diff) | |
download | meson-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.py | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 |