Skip to content

Commit

Permalink
Add Windows python sysconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed May 14, 2022
1 parent f5710d4 commit 4d078ac
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* Allow setting the publish repository URL via `MATURIN_REPOSITORY_URL` in [#913](https://github.com/PyO3/maturin/pull/913)
* Allow stubs-only mixed project layout in [#914](https://github.com/PyO3/maturin/pull/914)
* Allow setting the publish user name via `MATURIN_USERNAME` in [#915](https://github.com/PyO3/maturin/pull/915)
* Add Windows python sysconfig in [#917](https://github.com/PyO3/maturin/pull/917)

## [0.12.15] - 2022-05-07

Expand Down
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 4d078ac

Please sign in to comment.