@@ -20,8 +20,8 @@ MACOS_NAME = "osx"
20
20
LINUX_NAME = "linux"
21
21
WINDOWS_NAME = "windows"
22
22
23
- FREETHREADED = "freethreaded"
24
- MUSL = "musl"
23
+ FREETHREADED = "- freethreaded"
24
+ MUSL = "- musl"
25
25
INSTALL_ONLY = "install_only"
26
26
27
27
DEFAULT_RELEASE_BASE_URL = "https://github.com/astral-sh/python-build-standalone/releases/download"
@@ -847,7 +847,7 @@ def _generate_platforms():
847
847
for p , v in platforms .items ()
848
848
for suffix , freethreadedness in {
849
849
"" : is_freethreaded_no ,
850
- "-" + FREETHREADED : is_freethreaded_yes ,
850
+ FREETHREADED : is_freethreaded_yes ,
851
851
}.items ()
852
852
}
853
853
@@ -881,11 +881,11 @@ def get_release_info(platform, python_version, base_url = DEFAULT_RELEASE_BASE_U
881
881
release_filename = None
882
882
rendered_urls = []
883
883
for u in url :
884
- p , _ , _ = platform .partition ("-" + FREETHREADED )
884
+ p , _ , _ = platform .partition (FREETHREADED )
885
885
886
- if FREETHREADED in platform :
886
+ if FREETHREADED . lstrip ( "-" ) in platform :
887
887
build = "{}+{}-full" .format (
888
- FREETHREADED ,
888
+ FREETHREADED . lstrip ( "-" ) ,
889
889
{
890
890
"aarch64-apple-darwin" : "pgo+lto" ,
891
891
"aarch64-unknown-linux-gnu" : "lto" ,
0 commit comments