actions / setup-python

Set up your GitHub Actions workflow with a specific version of Python
MIT License
1.59k stars 505 forks source link

[Feature Request] Add Python debug builds with `Py_DEBUG` flag #885

Open XuehaiPan opened 2 weeks ago

XuehaiPan commented 2 weeks ago

Description: Describe your proposal.

Add Python debug builds with Py_DEBUG flag by setting --with-pydebug and --with-trace-refs configure options.

Justification: Justification or a use case for your proposal.

Some advanced Python development features require the Python executable to be built with extra configure flags. For example:

Reference:

There is a Ubuntu package python-dbg built with debug flag.

Are you willing to submit a PR?

Yes

HarithaVattikuti commented 2 weeks ago

Hello @XuehaiPan We appreciate your suggestion for a new feature! We'll make sure to address it when we have the opportunity