Skip to content

Commit

Permalink
Add NetBSD python sysconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed May 7, 2022
1 parent 6d5e43e commit c405917
Show file tree
Hide file tree
Showing 2 changed files with 44 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 @@ -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 c405917

Please sign in to comment.