I just checked PEP 440 and pip doesn't seem to have anything specific, so I thought I would ask if there is any way now or in the future to specify that a dependency is only needed for certain versions of Python?
My current use case is I want to use unittest2, but pip errors out during installation under Python 3 of it since unittest2 imports itself and triggers a syntax error. Instead of having to hack around this by making it a conditional include in my setup.py I would like to declare that I only need it in Python 2.x in a requirements.txt file or something.
_______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org https://mail.python.org/mailman/listinfo/distutils-sig