Add support for pythonX.Y -m piptools ...
.
#402
Labels
PR wanted
Feature is discussed or bug is confirmed, PR needed
pythonX.Y -m piptools ...
.
#402
I work with both Python 2.7 and Python 3.5 regularly. The dependency resolution process uses the Python version in multiple different ways and I'm afraid that running with both might not give the same result depending on the Python version.
For this reason, I don't have a global alias to
pip-compile
et al.. I could of course use a virtualenv just for running piptools, but that's quite inconvenient (especially for projects that don't use Tox). What I do have is a global alias topythonX.Y
(Linux) andpy -X.Y
(Windows).The most convenient way to use pip-tools in this context is to support the
python -m piptools ...
CLI syntax, which requires apiptools.__main__
module.That way, when I work on a Python 2.7 project:
And when I switch to a Python 3.5 project:
Are you open to such a change if I'm willing to put some time into it?
Thanks!
The text was updated successfully, but these errors were encountered: