pex-tool / pex

A tool for generating .pex (Python EXecutable) files, lock files and venvs.
https://docs.pex-tool.org/
Apache License 2.0
2.5k stars 257 forks source link

Expose Pip's `--use-feature`. #2375

Closed jsirois closed 5 months ago

jsirois commented 5 months ago

Folks may want to use these features. It could be the case that a feature breaks Pex, but that could be ameliorated with a warning in the option docs. In particular, its probably the case that most Pex (and Pip) users are unaware of the 3.5 year old --use-feature fast-deps range request hack for grabbing wheel metadata that uv is now using to much fanfare.

jsirois commented 5 months ago

This may not be needed. You can pass this option in a -r requirements.txt file already.

jsirois commented 5 months ago

A quick test of --use-feature fast-deps for torch shows its actually slightly slower.

That leads -> https://github.com/pypa/pip/issues/8670 -> https://github.com/pypa/pip/pull/11481 -> https://github.com/pypa/pip/pull/12208 (unmerged)

So I'll close this since the option is already available using Pex (since Pex supports -r / --requirements) and the impetus to expose 1st class is not yet viable.