Skip to content
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

Add Windows python sysconfig #917

Merged
merged 1 commit into from May 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions Changelog.md
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
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
@@ -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
}
]
}