FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

GH-127178: improve compatibility in `_sysconfig_vars_(...).json` by FFY00 · Pull Request #128558 · python/cpython · GitHub

/ cpython Public

GH-127178: improve compatibility in _sysconfig_vars_(...).json - #128558

Merged
FFY00 merged 4 commits into
python:mainfrom
FFY00:gh-127178-improve-compatibility
Jan 29, 2025
Merged

GH-127178: improve compatibility in _sysconfig_vars_(...).json#128558
FFY00 merged 4 commits into
python:mainfrom
FFY00:gh-127178-improve-compatibility

Conversation

FFY00 commented Jan 6, 2025
edited
Loading

Copy link
Copy Markdown
Member

This patch improves environment and platform compatibility:

  • Data now matches sysconfig.get_config_vars after install
  • userbase now correctly reflects the target platform when cross-compiling
  • test_sysconfigdata_json now takes into account the following situations:
    • Running with a non-default sys.executable path
    • Running under virtual environments
    • Running under relocatable installs

To simplify the detection of relocatable installs, which needs to look at _sysconfigdata_(...), this module is now saved in sys.modules. As part of this change, the code to import the module from a specific directory was refactored to use PathFinder, simplifying the implementation.

Signed-off-by: Filipe Laíns <lains@riseup.net

This patch improves environment and platform compatibility
- Data now matches `sysconfig.get_config_vars` after install
- `userbase` now correctly reflects the target platform when cross-compiling
- `test_sysconfigdata_json` now takes into account the following situations:
  - Running with a non-default sys.executable path
  - Running under virtual environments
  - Running under relocatable installs

To simplify the detection of relocatable installs, which needs to look
at `_sysconfigdata_(...)`, this module is now saved in `sys.modules`.
As part of this change, the code to import the module from a specific
directory was refactored to use `PathFinder`, simplifying the
implementation.

Signed-off-by: Filipe Laíns <lains@riseup.net
FFY00 added the skip news label Jan 6, 2025
FFY00 added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Jan 6, 2025

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @FFY00 for commit b72a436 🤖

If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again.

bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Jan 6, 2025
…rs() dependency

Signed-off-by: Filipe Laíns <lains@riseup.net
FFY00 added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Jan 6, 2025

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @FFY00 for commit 396ac89 🤖

If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again.

bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Jan 6, 2025
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL