diff options
author | Alessio Sergi <al3hex@gmail.com> | 2014-04-15 16:55:16 +0200 |
---|---|---|
committer | Alessio Sergi <al3hex@gmail.com> | 2014-04-15 16:59:03 +0200 |
commit | 45d6b2521ba790f83c09321b4fa2b9804909cfde (patch) | |
tree | 6e1b0c802c06a68e174e5903af1f736ab5b2ed3a /setup.py | |
parent | 9cf956b88116e3b550d731751016e61f394d621c (diff) |
Fix python 2.6 compatibility
Add argparse as requirement when running on python 2.6.
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -8,8 +8,7 @@ from setuptools import setup data_files = [ ('share/doc/glances', ['AUTHORS', 'COPYING', 'NEWS', 'README.rst', - 'conf/glances.conf', 'docs/glances-doc.rst', - 'docs/glances-doc.html']), + 'conf/glances.conf', 'docs/glances-doc.html']), ('share/doc/glances/images', glob.glob('docs/images/*.png')), ('share/man/man1', ['man/glances.1']) ] @@ -32,6 +31,9 @@ if sys.platform.startswith('win'): else: requires = ['psutil>=2.0.0'] +if sys.version_info < (2, 7): + requires += ['argparse'] + setup( name='Glances', version='2.0', |