#pip-tools
1 messages ยท Page 1 of 1 (latest)
I suppose there are no known tricks beyond installing pip-tools into the project's virtualenv to convince it to consider a specific python version?
Yeah, It's general advice to have pip-tools installed in your venv. However, you can also use globally installed pip-tools (or installed via pipx) -- there should be no difference for pip-compile. Globally installed pip-sync would require --python-executable option to point a specific python interpreter.
to convince it to consider a specific python version
To use specific python version, yeah, pip-tools should be installed there so that pip-compile could resolve deps in this environment.
AFAIK there are no other options to convince pip-compile to use a particular Python version.
(beyond ^^, I use n global installed pip-compiles named pip-compile-<version> which are installed to venvs corresponding to each version)
--pip-args='--python-version=3.7' should do the trick
@clear salmon i thought so, sadly not ๐ฆ
@elfin glen could you check this PR https://github.com/jazzband/pip-tools/pull/1898 ?
$ echo click | pip-compile - -qo- --no-header --no-annotate
click==8.1.3
$ echo click | pip-compile - -qo- --no-header --no-annotate --pip-args='--python-version=3.0.0'
click==6.7
PR that makes pip-compile 1.6x faster for me https://github.com/pypa/pip/pull/12204
Awesome improvement! I can confirm it makes slightly faster pip-compile ๐
@abstract stump is everything allright? xD
i don't quite get the all extras logic in pip-compile. if there are multiple src_files, we don't collect extras from all of them, since we reassign extras. but the good news is that this will fail loudly if it's a real bug
noticed this while making https://github.com/jazzband/pip-tools/pull/1964 (this will be a nice speed improvement for the repo i work in, let me know if it's not viable for some reason)
that's likey a bug, I've noticed the same recently, but haven't reported an issue yet.
I like the idea. Should be huge speed improvement!
@abstract stump we're focused on this right now https://github.com/jazzband/pip-tools/pull/1681 which seems related to your PR. After this being merged I'd gladly help with test and review.