Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix builds with Cython 3 #731

Closed
wants to merge 1 commit into from
Closed

Commits on Jul 21, 2023

  1. Fix builds with Cython 3

    This is a *de minimis* fix for building with Cython 3. Recent Cython<3
    releases provided `Cython.Distutils.build_ext` as an alias to
    `Cython.Distutils.old_build_ext.old_build_ext`; Cython 3 drops this
    alias and instead uses a wholly new `Cython.Distutils.build_ext` that
    does not provide the `cython_sources` function used in `setup.py`.
    
    Explicitly importing `old_build_ext` preserves the existing behavior for
    recent Cython<3 and uses the correct behavior for Cython 3. Should the
    import fail (*e.g.*, because the version of Cython available predates
    the availability of `old_build_ext`), the import falls back to just
    `Cython.Distutils.build_ext`.
    
    Signed-off-by: Andrew J. Hesford <ajh@sideband.org>
    ahesford committed Jul 21, 2023
    Configuration menu
    Copy the full SHA
    17dc5b6 View commit details
    Browse the repository at this point in the history