diff options
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 25 |
1 files changed, 11 insertions, 14 deletions
@@ -8,11 +8,6 @@ from io import open from setuptools import setup, Command -# Predication warning -# Glances version 4 will only be compatible with Python 3.7 and above -if sys.version_info < (3, 7): - print('WARNING: Glances version 4 will only be compatible with Python 3.7 and above.') - if sys.version_info < (3, 8): print('Glances requires at least Python 3.8 to run.') sys.exit(1) @@ -39,24 +34,26 @@ def get_data_files(): return data_files -with open('requirements.txt') as f: - required = f.read().splitlines() def get_install_requires(): - requires = required + required = [] + with open('requirements.txt') as f: + required = f.read().splitlines() + + # On Windows, install WebUI by default if sys.platform.startswith('win'): - requires.append('fastapi') - requires.append('uvicorn') - requires.append('jinja2') - requires.append('requests') + required.append('fastapi') + required.append('uvicorn') + required.append('jinja2') + required.append('requests') - return requires + return required def get_install_extras_require(): extras_require = { 'action': ['chevron'], - 'browser': ['zeroconf>=0.19.1'], + 'browser': ['zeroconf==0.131.0'], 'cloud': ['requests'], 'containers': ['docker>=6.1.1', 'python-dateutil', 'six', 'podman', 'packaging'], 'export': ['bernhard', 'cassandra-driver', 'elasticsearch', 'graphitesender', |