Skip to content

Commit

Permalink
Add Windows python sysconfigs
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed May 14, 2022
1 parent f5710d4 commit ea1e99b
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/python_interpreter/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ static WELLKNOWN_SYSCONFIG: Lazy<HashMap<Os, HashMap<Arch, Vec<InterpreterConfig
let sysconfig_macos = serde_json::from_slice(include_bytes!("sysconfig-macos.json"))
.expect("invalid sysconfig-macos.json");
sysconfig.insert(Os::Macos, sysconfig_macos);
// Windows
let sysconfig_windows = serde_json::from_slice(include_bytes!("sysconfig-windows.json"))
.expect("invalid sysconfig-windows.json");
sysconfig.insert(Os::Windows, sysconfig_windows);
// FreeBSD
let sysconfig_freebsd = serde_json::from_slice(include_bytes!("sysconfig-freebsd.json"))
.expect("invalid sysconfig-freebsd.json");
Expand Down
87 changes: 87 additions & 0 deletions src/python_interpreter/sysconfig-windows.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
{
"x86_64": [
{
"major": 3,
"minor": 6,
"abiflags": "",
"interpreter": "cpython",
"ext_suffix": ".pyd",
"abi_tag": null,
"pointer_width": 64
},
{
"major": 3,
"minor": 7,
"abiflags": "",
"interpreter": "cpython",
"ext_suffix": ".pyd",
"abi_tag": null,
"pointer_width": 64
},
{
"major": 3,
"minor": 8,
"abiflags": "",
"interpreter": "cpython",
"ext_suffix": ".cp38-win_amd64.pyd",
"abi_tag": null,
"pointer_width": 64
},
{
"major": 3,
"minor": 9,
"abiflags": "",
"interpreter": "cpython",
"ext_suffix": ".cp39-win_amd64.pyd",
"abi_tag": null,
"pointer_width": 64
},
{
"major": 3,
"minor": 10,
"abiflags": "",
"interpreter": "cpython",
"ext_suffix": ".cp310-win_amd64.pyd",
"abi_tag": null,
"pointer_width": 64
}
],
"i686": [
{
"major": 3,
"minor": 7,
"abiflags": "",
"interpreter": "cpython",
"ext_suffix": ".pyd",
"abi_tag": null,
"pointer_width": 32
},
{
"major": 3,
"minor": 8,
"abiflags": "",
"interpreter": "cpython",
"ext_suffix": ".cp38-win32.pyd",
"abi_tag": null,
"pointer_width": 32
},
{
"major": 3,
"minor": 9,
"abiflags": "",
"interpreter": "cpython",
"ext_suffix": ".cp39-win32.pyd",
"abi_tag": null,
"pointer_width": 32
},
{
"major": 3,
"minor": 10,
"abiflags": "",
"interpreter": "cpython",
"ext_suffix": ".cp310-win32.pyd",
"abi_tag": null,
"pointer_width": 32
}
]
}

0 comments on commit ea1e99b

Please sign in to comment.