xrmx / uwsgitop

top-like app for monitoring uWSGI instances
MIT License
496 stars 77 forks source link

Don't require argparse on Python 2.7 #61

Open twm opened 4 years ago

twm commented 4 years ago

The dependency on argparse requires it on all Python 2 versions:

https://github.com/xrmx/uwsgitop/blob/423ab88a03cb89f7122c3833d72281d4686c84f2/setup.py#L15-L17

However argparse is part of the standard library in Python 2.7. The dependency should be

    install_requires=[
        'argparse;python_version<"2.7"',
    ],

This would prevent pip install from complaining like this:

...
  Found existing installation: argparse 1.2.1
    Not uninstalling argparse at /usr/lib/python2.7, as it is in the standard library.
    Can't uninstall 'argparse'. No files were found to uninstall.
...