Skip to content

Commit

Permalink
Merge pull request #903 from messense/netbsd-sysconfig
Browse files Browse the repository at this point in the history
Add NetBSD python sysconfig
  • Loading branch information
messense committed May 7, 2022
2 parents 6d5e43e + b624d6d commit 0b4231b
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
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
}
]
}

0 comments on commit 0b4231b

Please sign in to comment.