I have a Python package that works only in Python 2. In its setup.py there are the following classifiers:
setup(
However, if I create virtualenv with Python 3, pip successfully installs this package.
How to prevent package installation? Should my setup.py output an error based on sys.version_info ? Can I stop downloading a package even when downloading?
source share