diff options
author | Alessio Sergi <al3hex@gmail.com> | 2015-03-11 15:51:15 +0100 |
---|---|---|
committer | Alessio Sergi <al3hex@gmail.com> | 2015-03-11 16:03:32 +0100 |
commit | be3c43bf483a710c5e09502f390b1a835ec5470e (patch) | |
tree | e894bb92629c5cd8d9dd3922d4eeb7a8ddcb56ac /setup.py | |
parent | 58f03687b8073586e44c4b535bfdbf78d265d1b5 (diff) |
Add check for supported Python versions
Glances requires at least Python 2.6 or 3.3 to run.
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -8,6 +8,9 @@ from setuptools import setup is_chroot = os.stat('/').st_ino != 2 +if sys.version_info < (2, 6) or (3, 0) <= sys.version_info < (3, 3): + print('Glances requires at least Python 2.6 or 3.3 to run.') + sys.exit(1) def get_data_files(): data_files = [ |