-
Notifications
You must be signed in to change notification settings - Fork 1.4k
windows umask, win32_xstat_slow_impl, fake EXT_SUFFIX #6340
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -46,6 +46,7 @@ prec | |
| preinitialized | ||
| PYTHREAD_NAME | ||
| SA_ONSTACK | ||
| SOABI | ||
| stackdepth | ||
| stringlib | ||
| structseq | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,8 +7,19 @@ pub(crate) mod sysconfig { | |
| #[pyfunction] | ||
| fn config_vars(vm: &VirtualMachine) -> PyDictRef { | ||
| let vars = vm.ctx.new_dict(); | ||
|
|
||
| // FIXME: This is an entirely wrong implementation of EXT_SUFFIX. | ||
| // EXT_SUFFIX must be a string starting with "." for pip compatibility | ||
| // Using ".pyd" causes pip's _generic_abi() to fall back to _cpython_abis() | ||
| vars.set_item("EXT_SUFFIX", ".pyd".to_pyobject(vm), vm) | ||
| .unwrap(); | ||
| vars.set_item("SOABI", vm.ctx.none(), vm).unwrap(); | ||
|
|
||
| vars.set_item("Py_GIL_DISABLED", true.to_pyobject(vm), vm) | ||
| .unwrap(); | ||
| vars.set_item("Py_DEBUG", false.to_pyobject(vm), vm) | ||
| .unwrap(); | ||
|
Comment on lines
+10
to
+21
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: # First, let's examine the sysconfig.rs file to see its full context
wc -l crates/vm/src/stdlib/sysconfig.rsRepository: RustPython/RustPython Length of output: 186 🏁 Script executed: # Check the complete sysconfig.rs file and its module definition
cat -n crates/vm/src/stdlib/sysconfig.rsRepository: RustPython/RustPython Length of output: 186 🏁 Script executed: # Search for how sysconfig is registered/loaded and any platform guards
rg -n "sysconfig" crates/vm/src/stdlib/ --type rust -B 3 -A 3Repository: RustPython/RustPython Length of output: 186 🏁 Script executed: # Check for platform-specific gates on sysconfig module
rg -n "#\[cfg" crates/vm/src/stdlib/sysconfig.rsRepository: RustPython/RustPython Length of output: 186 🏁 Script executed: # Search for EXT_SUFFIX usage across the codebase
rg -n "EXT_SUFFIX" crates/vm/src/ --type rust -B 2 -A 2Repository: RustPython/RustPython Length of output: 186 🌐 Web query:
💡 Result: Short summary — what EXT_SUFFIX is and platform differences, and how to get it:
References:
Sources: 🌐 Web query:
💡 Result: Do you want (a) the RustPython source location that implements sysconfig/EXT_SUFFIX, (b) an explanation of how EXT_SUFFIX should behave (CPython behaviour), or (c) help implementing/fixing EXT_SUFFIX in RustPython? Hardcoded EXT_SUFFIX must be platform-specific: Windows uses Ensure either:
🤖 Prompt for AI Agents |
||
|
|
||
| vars | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.