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 fails to install dependency specified in pyproject.toml #5244

lazka opened this Issue Apr 15, 2018 · 5 comments


None yet
3 participants

lazka commented Apr 15, 2018

The package PyGObject (pre-release) contains the following pyproject.toml:

requires = ["setuptools", "wheel", "pycairo"]


  • pip install pygobject --pre


  • pip installs pycairo and then pygobject


> pip install pycairo                  
Requirement already satisfied: pycairo in ./foo/lib/python3.6/site-packages (1.17.0)
> pip install pygobject --pre 
Collecting pygobject
  Using cached PyGObject-3.29.1.dev0.tar.gz
  Could not find a version that satisfies the requirement pycairo (from versions: )
No matching distribution found for pycairo

This comment has been minimized.


pfmoore commented Apr 15, 2018

pycairo doesn't support installing PEP 518 dependencies from source (yet). See which explains the current limitations of pip's PEP 518 support.


This comment has been minimized.

lazka commented Apr 15, 2018

Thanks, I see. Providing wheels for pycairo is a bit hard because it links against other libraries with varying build configuration.

In my example above pip did build a wheel for pycairo first, so it wouldn't have to build from source theoretically.

Feel free to close this.

gnomesysadmins pushed a commit to GNOME/pygobject that referenced this issue Apr 15, 2018

Revert "Add PEP518/pyproject.toml file"
This reverts commit b4ff233.

pip 10 can only install wheel dependencies, which we don't have.

This comment has been minimized.

jackton1 commented Apr 16, 2018

Temporary Fix

Upgrade pip using.

curl | python3

Instead of pip install -U pip


This comment has been minimized.

lazka commented Apr 16, 2018


This comment has been minimized.

lazka commented Apr 25, 2018

Closing as a duplicate of #5229

@lazka lazka closed this Apr 25, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment