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: avoid interfering with other setuptools plugins #414

Merged
merged 2 commits into from
Jun 24, 2023
Merged

Conversation

henryiii
Copy link
Collaborator

Fix #413.

@mgorny
Copy link

mgorny commented Jun 24, 2023

Thanks!

@henryiii henryiii merged commit fd9e6cf into main Jun 24, 2023
@henryiii henryiii deleted the henryiii-patch-1 branch June 24, 2023 19:07
@kiwifb kiwifb mentioned this pull request Jun 14, 2024
henryiii added a commit that referenced this pull request Jun 14, 2024
This is a sort of follow up to #413 and #414. In sage-on-gentoo we
discovered that the presence of scikit-build-core breaks the building
sagemath (cschwan/sage-on-gentoo#783).
scikit-build-core also happens to be an indirect dependency for building
sagemath's documentation.
On the basis that the presence of setuptolls_rust does not break
sagemath's build, I studied the difference with scikit-build-core. I
noticed that the elements `bundled in the single
"finalize_distribution_options" entrypoint in scikit is split between
two different setuptools entrypoints.
This PR reproduce that setup and does a bit of clean up. The bundling of
the old _prepare_extension_detection and _prepare_build_cmake_command
into finalize_distribution_options being redundant after attributing
them directly to separate entrypoints. I also renamed the functions to
better characterise them.

Using this PR, sagemath builds without problems and pyzmq, which uses
scikit-build-core also builds properly.

---------

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com>
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

Successfully merging this pull request may close these issues.

setuptools patching (semi-randomly) breaks setuptools-rust, resulting in nonfunctional packages
2 participants