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

Fix build-system in pyproject.toml #341

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mgorny
Copy link

@mgorny mgorny commented Dec 28, 2022

Fix the build-system.requires key to specify poetry-core rather than poetry as the correct package providing poetry.core.* backend. Remove setuptools and wheel requirements since they are not used when building via the PEP517 backend.

Fix the `build-system.requires` key to specify `poetry-core` rather
than `poetry` as the correct package providing `poetry.core.*` backend.
Remove `setuptools` and `wheel` requirements since they are not used
when building via the PEP517 backend.
@pitbulk
Copy link
Contributor

pitbulk commented Jan 3, 2023

As you can see in the CI, if I don't add it on build-system.requires, there is an strange issue where the error

ImportError: No module named 'setuptools'

is raised, even if the setuptools was installed in the very beginning with the command

Run pip install -U setuptools

See pypa/setuptools#2980

@mgorny
Copy link
Author

mgorny commented Jan 3, 2023

The problem is that you're running Python < 3.6. While poetry might support it still (I didn't check), pip does not, so it's installing some old version (i.e. the last version supporting Python 2.7/3.5) and that version is simply broken with PEP517 builds.

@pitbulk
Copy link
Contributor

pitbulk commented Jan 3, 2023

@mgorny Soon I plan to deprecate support on python 2.7, 3.4 and 3.5 on this toolkit (only security patch could be supported) so gonna be a good time to apply this PR and improve the code properly with new features available in python > 3.5

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

Successfully merging this pull request may close these issues.

None yet

2 participants