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 PEP 656 musllinux support #543

Merged
merged 10 commits into from
May 26, 2021
Merged

Add PEP 656 musllinux support #543

merged 10 commits into from
May 26, 2021

Conversation

messense
Copy link
Member

Closes #542

@@ -3,7 +3,7 @@ use serde::{Deserialize, Serialize};
use std::fmt;
use std::str::FromStr;

/// Decides how to handle manylinux compliance
/// Decides how to handle manylinux and musllinux compliance
#[derive(Serialize, Deserialize, Debug, Clone, Eq, PartialEq, Copy)]
pub enum Manylinux {
Copy link
Member Author

@messense messense May 19, 2021

Choose a reason for hiding this comment

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

I'm considering rename this struct to something like Platform/PlatformTag, what do you think? @konstin

Copy link
Member Author

Choose a reason for hiding this comment

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

The --manylinux command line option also needs some tweaking.

Copy link
Member

Choose a reason for hiding this comment

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

Difficult question. I worry that having both --target and --platform will be confusing to people, esp. since platform gets. Maybe something like --compatibility? --tag would be another possibility, but "tag" does sound more like metadata (e.g. docker tag) than like libc flavor and version.

src/auditwheel/manylinux.rs Outdated Show resolved Hide resolved
@messense messense requested a review from konstin May 20, 2021 01:10
@messense

This comment has been minimized.

Copy link
Member

@konstin konstin left a comment

Choose a reason for hiding this comment

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

Already looks good!

case_insensitive = true,
name = "compatibility",
long = "compatibility",
alias = "manylinux",
Copy link
Member Author

Choose a reason for hiding this comment

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

Let's keep the --manylinux as an alias to --compatibility for a while. It'd be nice to somehow emit a warning if --manylinux is used instead of --compatibility.

src/auditwheel/audit.rs Outdated Show resolved Hide resolved
@messense messense marked this pull request as ready for review May 26, 2021 13:35
@messense messense merged commit 606db17 into PyO3:main May 26, 2021
@messense messense deleted the musllinux branch May 26, 2021 13:57
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.

Add PEP 656 support: Platform Tag for Linux Distributions Using Musl
2 participants