Skip to content

Provide --with-pydebug builds of Python #11518

Open
@nickelpro

Description

@nickelpro

Summary

When developing CPython extensions it is very useful to develop and test on non-optimized, --with-pydebug builds of Python. The set of asserts enabled by such builds provide early warning of a plethora of otherwise tricky to detect bugs, most notably bad reference counting.

Doing so today requires developers to download and compile all relevant versions, and somehow make those versions available to their virtual environment managers (you typically don't want these in PATH). uv could simplify this workflow greatly for most use-cases.

uv already provides a free-threaded variant via the t suffix for freethreaded python, see astral-sh/python-build-standalone#320

The same could be provided for --with-pydebug builds via d suffixed versions

Example

uv python install 3.13d

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or improvement to existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions