We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a82ca35 commit 4dd1252Copy full SHA for 4dd1252
crates/vm/src/stdlib/sysconfig.rs
@@ -7,8 +7,19 @@ pub(crate) mod sysconfig {
7
#[pyfunction]
8
fn config_vars(vm: &VirtualMachine) -> PyDictRef {
9
let vars = vm.ctx.new_dict();
10
+
11
+ // FIXME: This is an entirely wrong implementation of EXT_SUFFIX.
12
+ // EXT_SUFFIX must be a string starting with "." for pip compatibility
13
+ // Using ".pyd" causes pip's _generic_abi() to fall back to _cpython_abis()
14
+ vars.set_item("EXT_SUFFIX", ".pyd".to_pyobject(vm), vm)
15
+ .unwrap();
16
+ vars.set_item("SOABI", vm.ctx.none(), vm).unwrap();
17
18
vars.set_item("Py_GIL_DISABLED", true.to_pyobject(vm), vm)
19
.unwrap();
20
+ vars.set_item("Py_DEBUG", false.to_pyobject(vm), vm)
21
22
23
vars
24
}
25
0 commit comments