Skip to content

Support py3.12 #25

@chenrui333

Description

@chenrui333

While trying to migrate zurl to test against py3.12, ran into the following test failure

    zmq/backend/cython/_device.c: In function ‘__Pyx_Raise’:
    zmq/backend/cython/_device.c:4372:34: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘curexc_traceback’
     4372 |         PyObject* tmp_tb = tstate->curexc_traceback;
          |                                  ^~
    zmq/backend/cython/_device.c:4375:19: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘curexc_traceback’
     4375 |             tstate->curexc_traceback = tb;
          |                   ^~
    zmq/backend/cython/_device.c: In function ‘__Pyx_PyInt_As_int’:
    zmq/backend/cython/_device.c:5408:53: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’
     5408 |             const digit* digits = ((PyLongObject*)x)->ob_digit;
          |                                                     ^~
    zmq/backend/cython/_device.c:5463:53: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’
     5463 |             const digit* digits = ((PyLongObject*)x)->ob_digit;
          |                                                     ^~
    zmq/backend/cython/_device.c: In function ‘__Pyx_PyInt_As_long’:
    zmq/backend/cython/_device.c:5680:53: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’
     5680 |             const digit* digits = ((PyLongObject*)x)->ob_digit;
          |                                                     ^~
    zmq/backend/cython/_device.c:5735:53: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’
     5735 |             const digit* digits = ((PyLongObject*)x)->ob_digit;
          |                                                     ^~
    zmq/backend/cython/_device.c: In function ‘__Pyx_PyIndex_AsSsize_t’:
    zmq/backend/cython/_device.c:6086:45: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’
     6086 |     const digit* digits = ((PyLongObject*)b)->ob_digit;
          |                                             ^~
    ************************************************
    ************************************************
    error: command '/usr/bin/gcc-11' failed with exit code 1
    error: subprocess-exited-with-error

log, https://github.com/Homebrew/homebrew-core/actions/runs/6450154450/job/17509259440?pr=150232
relates to Homebrew/homebrew-core#150232

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions