Skip to content

Include free-threaded Python in published musl distributions #583

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ env:
permissions:
contents: write
packages: write
releases: wrte
# Permissions used for actions/attest-build-provenance
id-token: write
attestations: write
Expand Down
25 changes: 21 additions & 4 deletions src/release.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ pub static RELEASE_TRIPLES: Lazy<BTreeMap<&'static str, TripleRelease>> = Lazy::
"lto+static",
"noopt+static",
];
let linux_suffixes_musl_freethreaded = vec![
"debug+freethreaded",
"lto+freethreaded",
"noopt+freethreaded",
];
let linux_suffixes_pgo_freethreaded = vec!["freethreaded+debug", "freethreaded+pgo+lto"];
let linux_suffixes_nopgo_freethreaded = vec![
"freethreaded+debug",
Expand Down Expand Up @@ -280,7 +285,10 @@ pub static RELEASE_TRIPLES: Lazy<BTreeMap<&'static str, TripleRelease>> = Lazy::
suffixes: linux_suffixes_musl.clone(),
install_only_suffix: "lto",
python_version_requirement: None,
conditional_suffixes: vec![],
conditional_suffixes: vec![ConditionalSuffixes {
python_version_requirement: VersionSpecifier::from_str(">=3.13").unwrap(),
suffixes: linux_suffixes_musl_freethreaded.clone(),
}],
},
);
h.insert(
Expand All @@ -289,7 +297,10 @@ pub static RELEASE_TRIPLES: Lazy<BTreeMap<&'static str, TripleRelease>> = Lazy::
suffixes: linux_suffixes_musl.clone(),
install_only_suffix: "lto",
python_version_requirement: None,
conditional_suffixes: vec![],
conditional_suffixes: vec![ConditionalSuffixes {
python_version_requirement: VersionSpecifier::from_str(">=3.13").unwrap(),
suffixes: linux_suffixes_musl_freethreaded.clone(),
}],
},
);
h.insert(
Expand All @@ -298,7 +309,10 @@ pub static RELEASE_TRIPLES: Lazy<BTreeMap<&'static str, TripleRelease>> = Lazy::
suffixes: linux_suffixes_musl.clone(),
install_only_suffix: "lto",
python_version_requirement: None,
conditional_suffixes: vec![],
conditional_suffixes: vec![ConditionalSuffixes {
python_version_requirement: VersionSpecifier::from_str(">=3.13").unwrap(),
suffixes: linux_suffixes_musl_freethreaded.clone(),
}],
},
);
h.insert(
Expand All @@ -307,7 +321,10 @@ pub static RELEASE_TRIPLES: Lazy<BTreeMap<&'static str, TripleRelease>> = Lazy::
suffixes: linux_suffixes_musl.clone(),
install_only_suffix: "lto",
python_version_requirement: None,
conditional_suffixes: vec![],
conditional_suffixes: vec![ConditionalSuffixes {
python_version_requirement: VersionSpecifier::from_str(">=3.13").unwrap(),
suffixes: linux_suffixes_musl_freethreaded.clone(),
}],
},
);

Expand Down
Loading