Je me demande pourquoi nous ne lançons pas également si
--target
est fourni.
Aucune idée. Déposer un nouveau problème pour suivre quelqu'un qui le découvre. :)
_Publié à l'origine par @chrahunt sur https://github.com/pypa/pip/pull/7002_
Si j'essaie de passer les deux, j'obtiens une erreur de distutils. C'est assez clair, alors c'est peut-être pourquoi il n'est pas vérifié dans le pip, mais peut-être qu'il est toujours logique de le vérifier et d'échouer plus rapidement.
$ pip install --user --target test-tgt/ astcheck
Collecting astcheck
Using cached https://files.pythonhosted.org/packages/8d/a7/23752054ffc65eca77b2137f88c3b4b8d196112b5e13e9536f194ab67756/astcheck-0.2.5-py2.py3-none-any.whl
Installing collected packages: astcheck
Exception:
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/pip/_internal/cli/base_command.py", line 179, in main
status = self.run(options, args)
File "/usr/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 421, in run
strip_file_prefix=options.strip_file_prefix,
File "/usr/lib/python3.7/site-packages/pip/_internal/req/__init__.py", line 57, in install_given_reqs
**kwargs
File "/usr/lib/python3.7/site-packages/pip/_internal/req/req_install.py", line 917, in install
strip_file_prefix=strip_file_prefix,
File "/usr/lib/python3.7/site-packages/pip/_internal/req/req_install.py", line 447, in move_wheel_files
strip_file_prefix=strip_file_prefix,
File "/usr/lib/python3.7/site-packages/pip/_internal/wheel.py", line 326, in move_wheel_files
prefix=prefix,
File "/usr/lib/python3.7/site-packages/pip/_internal/locations.py", line 180, in distutils_scheme
i.finalize_options()
File "/usr/lib64/python3.7/distutils/command/install.py", line 252, in finalize_options
raise DistutilsOptionError("can't combine user with prefix, "
distutils.errors.DistutilsOptionError: can't combine user with prefix, exec_prefix/home, or install_(plat)base
Cela semble assez simple, donc changeant de statut.
@pradyunsg je suis dessus. :+1:
Commentaire le plus utile
Cela semble assez simple, donc changeant de statut.