Skip to content

pip 10 wheel fails when install.user is set in the config #5085

Closed
@anntzer

Description

@anntzer
  • Pip version: 10.0.0.dev0 (94d186b)
  • Python version: 3.6
  • Operating system: Arch Linux

Description:

Tried to build a wheel using pyproject.toml while the install.user key is set in ~/.config/pip/pip.conf. Failed with the traceback below.

What I've run:

$ cat setup.py
from setuptools import setup
setup()

$ cat pyproject.toml
[build-system]
requires = ["setuptools", "wheel"]

$ cat ~/.config/pip/pip.conf
[install]
user = true

$ pip wheel -wdist .
Processing /tmp/testdir
  Installing build dependencies ... error
  Complete output from command /usr/bin/python -m pip install --ignore-installed --prefix /tmp/pip-build-env-x1otknjf https://pypi.python.org/packages/20/d7/04a0b689d3035143e2ff288f4b9ee4bf6ed80585cc121c90bfd85a1a8c2e/setuptools-39.0.1-py2.py3-none-any.whl#md5=ca299c7acd13a72e1171a3697f2b99bc https://pypi.python.org/packages/0c/80/16a85b47702a1f47a63c104c91abdd0a6704ee8ae3b4ce4afc49bc39f9d9/wheel-0.30.0-py2.py3-none-any.whl#md5=1d61793f816d6b60513364fe2de9c1b3:
  ERROR: Can not combine '--user' and '--prefix' as they imply different installation locations
  
  ----------------------------------------
Command "/usr/bin/python -m pip install --ignore-installed --prefix /tmp/pip-build-env-x1otknjf https://pypi.python.org/packages/20/d7/04a0b689d3035143e2ff288f4b9ee4bf6ed80585cc121c90bfd85a1a8c2e/setuptools-39.0.1-py2.py3-none-any.whl#md5=ca299c7acd13a72e1171a3697f2b99bc https://pypi.python.org/packages/0c/80/16a85b47702a1f47a63c104c91abdd0a6704ee8ae3b4ce4afc49bc39f9d9/wheel-0.30.0-py2.py3-none-any.whl#md5=1d61793f816d6b60513364fe2de9c1b3" failed with error code 1 in None

Metadata

Metadata

Assignees

No one assigned

    Labels

    auto-lockedOutdated issues that have been locked by automation

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions