Skip to content

Build failure due to missing _Py_SINGLETON in static-extension-modules build (3.13 only) #119661

Closed
@kpfleming

Description

@kpfleming

Bug report

Bug description:

While attempting to upgrade python-build-standalone to support Python 3.13 beta releases, we've run into a build failure which may be caused by Argument Clinic failing to ensure that all necessary #include directives are emitted into the source files it generates.

The failure can be seen here. Granted this is a very unusual way to build CPython, but given some of the discussions at the recent Packaging Summit it may become more valuable soon :-)

It was suggested that @vstinner might have the knowledge needed to understand what is happening here, so apologies in advance for the direct ping :-)

I'm happy to include patches into that build tree to see if we can overcome the problem before the next beta release, and I'm also happy to make that branch writable by others who want to try to help troubleshoot.

CPython versions tested on:

3.13

Operating systems tested on:

Linux, macOS, Windows

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions