vanvalenlab / deepcell-tracking

Track cells and build cell lineages
Other
29 stars 6 forks source link

Use environment markers in setup.py to conditionally change opencv versions #39

Closed willgraf closed 3 years ago

willgraf commented 3 years ago

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.