Closed nir0s closed 6 years ago
So.. the thing is, that pip isn't necessarily importable. We look for pip in different places to run as an executable.
@nir0s Do we care about supporting <7.0.0? I'm only after version checking if we are supporting both uses. One alternative would be to actually check the version by executing the sys_exec
path with version. Another would be try/except. Although the way these methods are organized that probably won't work here. Neither alternative is very good.
I agree with @tehasdf. Additionally, Wagon directly depends on pip and wheel. IMHO this means that we should always simply support the latest versions of pip and wheel and document that people should use previous versions of Wagon (much like people use previous versions of pip and wheel) if needed.
This fixes #120 a compatibility problem with new versions of pip. In version 7.0.0 the
--use-wheel
flag was deprecated and it was removed (without acknowledgment in pip 10.0.0 i.e. it's not in the changelog).