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 NetBSD python sysconfig #903

Merged
merged 1 commit into from
May 7, 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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]

* Add Linux armv7l python sysconfig in [#901](https://github.com/PyO3/maturin/pull/901)
* Add NetBSD python sysconfig in [#903](https://github.com/PyO3/maturin/pull/903)

## [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 @@ -29,6 +29,10 @@ static WELLKNOWN_SYSCONFIG: Lazy<HashMap<Os, HashMap<Arch, Vec<InterpreterConfig
let sysconfig_openbsd = serde_json::from_slice(include_bytes!("sysconfig-openbsd.json"))
.expect("invalid sysconfig-openbsd.json");
sysconfig.insert(Os::OpenBsd, sysconfig_openbsd);
// NetBSD
let sysconfig_netbsd = serde_json::from_slice(include_bytes!("sysconfig-netbsd.json"))
.expect("invalid sysconfig-netbsd.json");
sysconfig.insert(Os::NetBsd, sysconfig_netbsd);
sysconfig
});

Expand Down
40 changes: 40 additions & 0 deletions src/python_interpreter/sysconfig-netbsd.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"x86_64": [
{
"major": 3,
"minor": 7,
"abiflags": "",
"interpreter": "cpython",
"ext_suffix": ".so",
"abi_tag": "37",
"pointer_width": 64
},
{
"major": 3,
"minor": 8,
"abiflags": "",
"interpreter": "cpython",
"ext_suffix": ".so",
"abi_tag": "38",
"pointer_width": 64
},
{
"major": 3,
"minor": 9,
"abiflags": "",
"interpreter": "cpython",
"ext_suffix": ".so",
"abi_tag": "39",
"pointer_width": 64
},
{
"major": 3,
"minor": 10,
"abiflags": "",
"interpreter": "cpython",
"ext_suffix": ".so",
"abi_tag": "310",
"pointer_width": 64
}
]
}