Environment markers allow pip to dynamically install the appropriate version of a package for different versions of Python. While this is not an issue for most dependencies (scipy, numpy, etc.), opencv-python-headless will attempt to install the latest version of the package even for unsupported Python versions.
This PR removes requirements.txt and requirements-test.txt in favor of using setup.py, where we can set the version of opencv-python-headless for each Python version.
Environment markers allow
pip
to dynamically install the appropriate version of a package for different versions of Python. While this is not an issue for most dependencies (scipy
,numpy
, etc.),opencv-python-headless
will attempt to install the latest version of the package even for unsupported Python versions.This PR removes
requirements.txt
andrequirements-test.txt
in favor of usingsetup.py
, where we can set the version ofopencv-python-headless
for each Python version.