diff --git a/src/get_interpreter_metadata.py b/src/get_interpreter_metadata.py index 99afbe5a2..ef7fb9ec8 100644 --- a/src/get_interpreter_metadata.py +++ b/src/get_interpreter_metadata.py @@ -14,7 +14,7 @@ "u": sysconfig.get_config_var("Py_UNICODE_SIZE") == 4, "d": sysconfig.get_config_var("Py_DEBUG") == 1, # This one isn't technically necessary, but still very useful for sanity checks - "platform": sys.platform, + "platform": platform.system().lower(), } print(json.dumps(metadata)) diff --git a/src/python_interpreter.rs b/src/python_interpreter.rs index 9d397dfbf..ce0290780 100644 --- a/src/python_interpreter.rs +++ b/src/python_interpreter.rs @@ -305,10 +305,10 @@ fn fun_with_abiflags( target: &Target, ) -> Result { let sane_platform = match message.platform.as_ref() { - "win32" | "win_amd64" => target.is_windows(), - "linux" | "linux2" | "linux3" => target.is_linux(), + "windows" => target.is_windows(), + "linux" => target.is_linux(), "darwin" => target.is_macos(), - "freebsd11" | "freebsd12" | "freebsd13" => target.is_freebsd(), + "freebsd" => target.is_freebsd(), _ => false, };