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

add build-backend to pyproject.toml #648

Open
Alessandro-Barbieri opened this issue May 14, 2022 · 8 comments
Open

add build-backend to pyproject.toml #648

Alessandro-Barbieri opened this issue May 14, 2022 · 8 comments

Comments

@Alessandro-Barbieri
Copy link

Could you add add build-backend to pyproject.toml?

@benkiel
Copy link
Member

benkiel commented May 18, 2022

More detail (why do you want this, what will it add, etc) and possibly a PR?

@alerque
Copy link

alerque commented May 18, 2022

I believe it's required for PEP 517 tooling and would avoid downstream packagers from having to hack in the info manually.

@Alessandro-Barbieri
Copy link
Author

I need it to move the ebuild of fontparts in the gentoo overlay ::guru to use PEP517
see https://projects.gentoo.org/python/guide/distutils.html#the-pep-517-and-legacy-modes

@benkiel
Copy link
Member

benkiel commented May 18, 2022

Got it. Read that doc, very helpful: do you know which build-background we should be using? Ok if not, I'll sort it out if not.

@justvanrossum
Copy link
Contributor

Probably setuptools, as that's what setup.py uses.

@benkiel
Copy link
Member

benkiel commented May 18, 2022

@justvanrossum that's my guess to. On figuring it out as we do use setuptools_scm which has wrinkles it seems.

@justvanrossum
Copy link
Contributor

Perhaps go pyproject.toml all the way, and only leave a stub setup.py. I'm doing that with a new project and seems to work ok, including setuptools_scm.

@justvanrossum
Copy link
Contributor

My build-system section looks like this:

[build-system]
requires = ["setuptools", "setuptools-scm[toml]"]
build-backend = "setuptools.build_meta"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants