Skip to content

Configure-based build system doesn't have a documented way to disable modules like setup.py did #98558

Open
@Bo98

Description

@Bo98

Feature or enhancement

To provide the ability to disable modules in the configure-based build system like the now removed setup.py did.

Pitch

Until the removal of setup.py, it was possible to disable modules by editing DISABLED_MODULE_LIST.

cpython/setup.py

Lines 60 to 61 in dcb342b

# This global variable is used to hold the list of modules to be disabled.
DISABLED_MODULE_LIST = []

In the past I used this to disable _tkinter.

In the configure based system, this is still possible but relies on internal variable names. I can pass py_cv_module__tkinter=disabled to ./configure. It would be useful to have something that was documented rather than having to rely on internal variables like that.

Previous discussion

Not yet, but can do if desired.

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildThe build process and cross-buildtype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions