Skip to content

Add PEP 656 musllinux support - #543

Merged
messense merged 10 commits into
PyO3:mainfrom
messense:musllinux
May 26, 2021
Merged

Add PEP 656 musllinux support#543
messense merged 10 commits into
PyO3:mainfrom
messense:musllinux

Conversation

@messense

Copy link
Copy Markdown
Member

Closes #542

Comment thread src/auditwheel/manylinux.rs Outdated
/// 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 {

@messense messense May 19, 2021

Copy link
Copy Markdown
Member Author

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
Copy Markdown
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
Copy Markdown
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.

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

This comment has been minimized.

@konstin konstin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Already looks good!

Comment thread src/build_options.rs
case_insensitive = true,
name = "compatibility",
long = "compatibility",
alias = "manylinux",

Copy link
Copy Markdown
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.

Comment thread src/auditwheel/audit.rs Outdated
@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