pip: Build isolation fails with system-wide pip<10 and user-site pip==10.0.0
- Pip version: 10.0.0
- Python version: 3.6.5
- Operating system: Linux/Fedora
Description:
Apparently, the combination of system-wide installation of pip<10 and user-site installation of pip>=10 makes projects with pyproject.toml fail to build.
I would expect user-site installation of pip to work.
What I’ve run:
$ python3 -mpip install --user --upgrade pip
Requirement already up-to-date: pip in ./.local/lib/python3.6/site-packages (10.0.0)
$ mkdir ~/foo
$ cd ~/foo
$ echo "assert False" > setup.py
$ cat <<EOF > pyproject.toml
> [build-system]
> requires = [
> "wheel",
> "setuptools",
> ]
> EOF
$ ls
pyproject.toml setup.py
$ python3 -mpip --version
pip 10.0.0 from /home/pauli/.local/lib/python3.6/site-packages/pip (python 3.6)
$ python3 -mpip wheel .
Processing /home/pauli/foo
Installing build dependencies ... error
Complete output from command /usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-tlxjmy36 https://pypi.python.org/packages/1b/d2/22cde5ea9af055f81814f9f2545f5ed8a053eb749c08d186b369959189a8/wheel-0.31.0-py2.py3-none-any.whl#md5=240d714477a715bcd90e94cb2c44f28c https://pypi.python.org/packages/20/d7/04a0b689d3035143e2ff288f4b9ee4bf6ed80585cc121c90bfd85a1a8c2e/setuptools-39.0.1-py2.py3-none-any.whl#md5=ca299c7acd13a72e1171a3697f2b99bc:
Usage:
/usr/bin/python3 -m pip install [options] <requirement specifier> [package-index-options] ...
/usr/bin/python3 -m pip install [options] -r <requirements file> [package-index-options] ...
/usr/bin/python3 -m pip install [options] [-e] <vcs project url> ...
/usr/bin/python3 -m pip install [options] [-e] <local project path> ...
/usr/bin/python3 -m pip install [options] <archive url/path> ...
no such option: --no-user
----------------------------------------
Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-tlxjmy36 https://pypi.python.org/packages/1b/d2/22cde5ea9af055f81814f9f2545f5ed8a053eb749c08d186b369959189a8/wheel-0.31.0-py2.py3-none-any.whl#md5=240d714477a715bcd90e94cb2c44f28c https://pypi.python.org/packages/20/d7/04a0b689d3035143e2ff288f4b9ee4bf6ed80585cc121c90bfd85a1a8c2e/setuptools-39.0.1-py2.py3-none-any.whl#md5=ca299c7acd13a72e1171a3697f2b99bc" failed with error code 2 in None
Note that the error occurs before executing setup.py
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 17 (10 by maintainers)
Just in case this may help others in the same situation as me, who ended up here searching for a solution: I have a local python 3.6 install, with
user=1in my~/.pydistutils.cfgfile (on and Ubuntu 16.04 system, if that matters), and I just gotno such option: --no-userissues. I solved this by deleting my~/.local/lib/python3.6/site-packages/pipand performing apython3.6 -m pip install --upgrade pip(wherepython3.6is my local python, i.e.~/bin/python3.6).pip3.6(which is~/.local/bin/pip3.6) is working again.