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 alternate manylinux targets to --python-platform #3229

Merged
merged 1 commit into from
Apr 24, 2024

Conversation

charliermarsh
Copy link
Member

Summary

I initially implemented this by allowing arbitrary x86_64-manylinux_x_y, but it makes the Clap, Serde, and Schemars definitions more complicated, and makes it harder for the user. Ultimately, manylinux itself only provides images for 2_17 and 2_28, so this seems like it should be sufficient.

Closes #3222.

@charliermarsh charliermarsh added the enhancement New feature or request label Apr 24, 2024
@charliermarsh charliermarsh marked this pull request as ready for review April 24, 2024 00:13
@charliermarsh charliermarsh changed the title Add alternate manylinux targets to --python-platform Add alternate manylinux targets to --python-platform Apr 24, 2024
@@ -27,7 +27,7 @@ pub enum TargetTriple {
#[cfg_attr(feature = "clap", value(name = "x86_64-pc-windows-msvc"))]
X8664PcWindowsMsvc,

/// An x86 Linux target.
/// An x86 Linux target. Equivalent to `x86_64-manylinux_2_17`.
#[cfg_attr(feature = "clap", value(name = "x86_64-unknown-linux-gnu"))]
X8664UnknownLinuxGnu,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could consider removing these and only supporting the manylinux versions? And change x86_64-unknown-linux-musl to x86_64-musllinx_1_2?

@messense
Copy link
Contributor

Ultimately, manylinux itself only provides images for 2_17 and 2_28, so this seems like it should be sufficient.

They used to also provide docker images for 2_24, while it's deprecated now they are still some packages targeting it.

BTW, some manylinux policies do not have official docker images probably because the version is new enough to just build on a recent Ubuntu system. See also

@charliermarsh
Copy link
Member Author

I saw at least one package that publishes at 2_27, but even in that case it seems reasonable to just expose 2_28, ie, have some coarseness in the setting. We can always expand support in the future.

@charliermarsh charliermarsh merged commit 116d47e into main Apr 24, 2024
40 checks passed
@charliermarsh charliermarsh deleted the charlie/many branch April 24, 2024 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add different manylinux and glibc variants to --python-platform
3 participants