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

Lightweight core library #1993

Closed
sdispater opened this issue Feb 7, 2020 · 4 comments
Closed

Lightweight core library #1993

sdispater opened this issue Feb 7, 2020 · 4 comments
Assignees
Labels
area/build-system Related to PEP 517 packaging (see poetry-core) kind/feature Feature requests/implementations
Milestone

Comments

@sdispater
Copy link
Member

sdispater commented Feb 7, 2020

Currently, to build a Poetry project via the PEP-517 build mechanism, you need this section:

[build-system]
requires = ["poetry>=1.0.3"]
build-backend = "poetry.masonry.api"

This works but this has the undesirable side-effect of pulling the full Poetry stack and its dependencies. Most of them are not needed to build the project and expose the metadata.

To prevent that, we need to extract parts of the Poetry stack into a more lightweight library with the sole purpose of building projects.

Ideally, this core library should not have any dependency to avoid errors to to circular build dependencies when using pip install --no-binary :all:.

@sdispater sdispater added area/build-system Related to PEP 517 packaging (see poetry-core) kind/feature Feature requests/implementations labels Feb 7, 2020
@sdispater sdispater added this to the 1.1 milestone Feb 7, 2020
@sdispater sdispater mentioned this issue Feb 7, 2020
14 tasks
@sdispater sdispater self-assigned this Feb 7, 2020
@pradyunsg
Copy link
Contributor

Just to be sure, this core would be analogous to flit_core, correct?

@kbakk kbakk mentioned this issue Mar 7, 2020
2 tasks
@sdispater
Copy link
Member Author

@pradyunsg Yes, the idea is to not require the full Poetry stack just to build projects.

And it will help fix the issue with pip when there are cyclic dependencies between the build backend and its own dependencies.

@ulgens
Copy link

ulgens commented Apr 30, 2020

@sdispater Isn't this resolved by #2212 ? Not sure why this one is not automatically closed. Also, we can mark it as done on #1856 .

Copy link

github-actions bot commented Mar 3, 2024

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

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/build-system Related to PEP 517 packaging (see poetry-core) kind/feature Feature requests/implementations
Projects
None yet
Development

No branches or pull requests

4 participants