-
-
Notifications
You must be signed in to change notification settings - Fork 37k
Convert _sysconfigdata to a JSON file #127178
Copy link
Copy link
Open
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-sysconfigtype-featureA feature request or enhancementA feature request or enhancement
Description
Activity
Metadata
Metadata
Assignees
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-sysconfigtype-featureA feature request or enhancementA feature request or enhancement
Feature or enhancement
Proposal:
Currently, as part of the
sysconfiginternals, we generate a_sysconfigdataPython module containing the variables forsysconfig.get_config_vars(). This data is consists of all Makefile variables, which can be encoded as JSON data.The use of a module instead of a text file is historic, and adds unnecessary complexity. Converting
_sysconfigdatato a JSON file would simplify thesysconfigimplementation. Additionally, it also makes it easier for tools to introspect the Python installation, as this would remove the necessity to execute Python code to read_sysconfigdata.Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
Linked PRs
_sysconfig_vars_(...).json#128558