Skip to content

Can't build C extensions with --enable-pystats builds #121583

@mdboom

Description

@mdboom

Bug report

Bug description:

After building with --enable-pystats, you can't build any C extensions because Python.h includes pycode_uop_ids.h (indirectly).

      In file included from /home/mdboom/Work/builds/cpython/Include/pystats.h:16,
                       from /home/mdboom/Work/builds/cpython/Include/Python.h:65,
                       from src/_imagingmorph.c:14:
      /home/mdboom/Work/builds/cpython/Include/cpython/pystats.h:22:10: fatal error: pycore_uop_ids.h: No such file or directory
         22 | #include "pycore_uop_ids.h"
            |          ^~~~~~~~~~~~~~~~~~
      compilation terminated.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Assignees

Labels

3.13bugs and security fixestype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions