Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
926: use packaging.version.parse instead of StrictVersion for version checking r=hgrecco a=keewis fixes #872 `distutils.version.StrictVersion` cannot parse numpy development versions like `1.19.0.dev0+578f4e7`. `LooseVersion` is able to parse the version, but it compares ```python >>> LooseVersion("1.19.0.dev0+578f4e7") < LooseVersion("1.19") False ``` Using `pkg_resources.extern.packaging.version.parse` instead makes this work as expected. Since `setup.py` requires `setuptools`, I think it being installed is a reasonable assumption? Co-authored-by: Keewis <[email protected]>
- Loading branch information