[Distutils] deprecating pip install --target

Paul Moore p.f.moore at gmail.com
Wed Feb 17 05:09:49 EST 2016

On 16 February 2016 at 22:52, Robert Collins <robertc at robertcollins.net> wrote:
>> An alternative would be great, though I can probably fake things somehow for
>> my purposes.
> Sounds similar to Daniel's need - and again, --prefix + setting PATH
> and PYTHONPATH would be better.

Note that if I read the help for --prefix correctly, "pip install
--target x foo" puts foo in x, whereas "pip install --prefix x foo"
puts foo in x/lib. So how would setting prefix allow me to put foo in
x, and not in a subdirectory? That is specifically my requirement (and
the vendoring requirement in general). I *know* that means there's no
obvious place to put data files or extensions or whatever, and that's
fine by me.

It seems that if we want to go down this route, we need to include the
full set of --install-purelib, --install-platlib, --install-scripts
etc arguments to pip. But that's probably the wrong solution - if we
want to start playing with the various install location parameters to
pip install (--target, --prefix, --root) we should probably do a
"proper" job and just find a way to allow user-defined schemes.


More information about the Distutils-SIG mailing list