Skip to content

Use PEP 518 pyproject.toml to require cffi #453

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

Closed
segevfiner opened this issue Jul 11, 2018 · 7 comments
Closed

Use PEP 518 pyproject.toml to require cffi #453

segevfiner opened this issue Jul 11, 2018 · 7 comments

Comments

@segevfiner
Copy link

Using setup_requires triggers installation of cffi using the old and crusty easy_install, which often doesn't work well if at all.

PEP 518 allows specifiying this requirements in a pyproject.toml file, which pip 10 recognizes and will install those requirements itself.

@alex
Copy link
Member

alex commented Jul 11, 2018

pyproject.toml only works with packages that are installed as wheels right now. Since cffi isn't always available as a wheel, we can't do this yet.

@segevfiner
Copy link
Author

segevfiner commented Jul 11, 2018

pyproject.toml only works with packages that are installed as wheels right now. Since cffi isn't always available as a wheel, we can't do this yet.

What do you mean? The latest pip installs everything as a wheel, if it can. If a wheel isn't available from PyPI, it builds a wheel first and installs that.

I think using pyproject.toml makes it build the wheel in a virtualenv containing only the specified packages.

Is there really a problem with this behavior?

@alex
Copy link
Member

alex commented Jul 11, 2018

pip will not attempt to build a wheel for a dependency in pyproject.toml if there is only an sdist available.

@segevfiner
Copy link
Author

pip will not attempt to build a wheel for a dependency in pyproject.toml if there is only an sdist available.

Arghh... you are right: pypa/pip#5229. That's rather lame on pip's part...

@alex
Copy link
Member

alex commented Jul 11, 2018 via email

@segevfiner
Copy link
Author

A new version of pip was released where source installs from PEP 518 is now supported. (pypa/pip#5336). I didn't yet get to check if it works properly.

@reaperhulk
Copy link
Member

#457 does this

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants