Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pip 10.0b1 fails to respect pyproject.toml from GitHub #5142

Closed
henryiii opened this issue Apr 2, 2018 · 4 comments
Closed

Pip 10.0b1 fails to respect pyproject.toml from GitHub #5142

henryiii opened this issue Apr 2, 2018 · 4 comments
Assignees
Labels
auto-locked Outdated issues that have been locked by automation type: bug A confirmed bug or unintended behavior
Milestone

Comments

@henryiii
Copy link
Contributor

henryiii commented Apr 2, 2018

  • Pip version: 10.0.0b1
  • Python version: 2.7.12
  • Operating system: Ubuntu Docker 17.10

Description:

Installing from a git+ address doesn't seem to read/respect the pyproject.toml file, while local installs do.

What I've run:

docker run -it ubuntu
apt update && apt install -y python-pip git cmake g++
pip install pip==10.0b1
python -m pip install git+https://github.com/henryiii/skbuild-hello-cpp.git
# FAILS (see below)
docker run -it ubuntu
apt update && apt install -y python-pip git cmake g++
pip install pip==10.0b1
git clone https://github.com/henryiii/skbuild-hello-cpp.git
cd skbuild-hello-cpp
python -m pip install .
# WORKS

The failure in the first case is due to skbuild missing, which was specified in the pyproject.toml file. While both say "Installing build dependencies ... done", the failing one goes through that step much faster.

Collecting git+https://github.com/henryiii/skbuild-hello-cpp.git
  Cloning https://github.com/henryiii/skbuild-hello-cpp.git to /tmp/pip-req-build-IW2Cm7
  Installing build dependencies ... done
Installing collected packages: hello
  Running setup.py install for hello ... error
    Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-req-build-IW2Cm7/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-qLJToc/install-record.txt --single-version-externally-managed --compile:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-req-build-IW2Cm7/setup.py", line 1, in <module>
        from skbuild import setup
    ImportError: No module named skbuild

    ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-req-build-IW2Cm7/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-qLJToc/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-req-build-IW2Cm7/

And the success:

Processing /skbuild-hello-cpp
  Installing build dependencies ... done
Building wheels for collected packages: hello
  Running setup.py bdist_wheel for hello ... done
  Stored in directory: /root/.cache/pip/wheels/98/a4/89/b066a6010178297db26156fb8d7047bd973c45bfddd99ea7f8
Successfully built hello
Installing collected packages: hello
Successfully installed hello-1.2.3
@henryiii henryiii changed the title Pip 10.0b1 fails to respect pysettings.toml from GitHub Pip 10.0b1 fails to respect pyproject.toml from GitHub Apr 2, 2018
@pfmoore
Copy link
Member

pfmoore commented Apr 2, 2018

@pradyunsg is probably best able to comment here. Our PEP 518 support is only partially complete at this point - @pradyunsg is this one of the cases that is deliberately omitted from our current support (in which case the docs should probably be updated to say so)?

@pradyunsg
Copy link
Member

This is a bug. I'll investigate, it's likely a simple fix.

@pradyunsg pradyunsg added type: bug A confirmed bug or unintended behavior !release blocker Hold a release until this is resolved labels Apr 2, 2018
@pradyunsg pradyunsg added this to the 10.0 milestone Apr 2, 2018
@pradyunsg pradyunsg self-assigned this Apr 2, 2018
@pradyunsg
Copy link
Member

Closing as #5148 has merged.

@pradyunsg pradyunsg removed !release blocker Hold a release until this is resolved labels Feb 8, 2019
@lock
Copy link

lock bot commented May 29, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label May 29, 2019
@lock lock bot locked as resolved and limited conversation to collaborators May 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation type: bug A confirmed bug or unintended behavior
Projects
None yet
Development

No branches or pull requests

3 participants