-
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
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -46,6 +46,7 @@ prec | |
| preinitialized | ||
| PYTHREAD_NAME | ||
| SA_ONSTACK | ||
| SOABI | ||
| stackdepth | ||
| stringlib | ||
| structseq | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The 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:
Repository: RustPython/RustPython
Length of output: 186
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 186
🏁 Script executed:
Repository: RustPython/RustPython
Length of output: 186
🌐 Web query:
CPython sysconfig EXT_SUFFIX platform specific Windows Unix macOS💡 Result:
Short summary — what EXT_SUFFIX is and platform differences, and how to get it:
EXT_SUFFIX is the filename suffix used for compiled Python extension modules (shared objects) for the current build — e.g. on POSIX you usually get .cpython-XY... .so (includes the SOABI), on Windows you get .pyd (often with a platform/ABI tag like .cp37-win_amd64.pyd when full suffix is available). [1][2]
How CPython exposes it:
Practical snippet:
References:
Sources:
[0] StackOverflow — "Python generate SOABI/Extension Suffix (pep 3149) for Windows".
[1] Python docs — sysconfig (library documentation).
[2] Python docs — Configure/using Python (notes on platform/config).
🌐 Web query:
RustPython sysconfig module EXT_SUFFIX implementation💡 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
.pydEXT_SUFFIX will break on Unix/macOS platforms.EXT_SUFFIX must be platform-specific: Windows uses
.pyd, while Unix/macOS require.cpython-XY-{platform}.sowith SOABI included. The current hardcoded.pydvalue will cause extension module discovery to fail on non-Windows platforms.Ensure either:
#[cfg(windows)]), or🤖 Prompt for AI Agents