Skip to content

Cython 3 compatbility #77

@sanjayankur31

Description

@sanjayankur31

Cython 3 has been released, and the MUSIC sources need to be updated to work with it. Examples of errors when trying to build MUSIC with Cython 3:

warning: ./pyconfig.pxi:1:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
warning: music/pybuffer.pxd:8:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310
make[1]: *** [Makefile:444: all-recursive] Error 1
make: *** [Makefile:372: all] Error 2

Here's the migration guide: https://cython.readthedocs.io/en/latest/src/userguide/migrating_to_cy30.html

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