-
Notifications
You must be signed in to change notification settings - Fork 858
MAINT: Unpin Cython version constraint for Cython >= 3.1.0 (#5057) #5468
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
base: develop
Are you sure you want to change the base?
Changes from all commits
7ef41de
0c227c0
8d2e559
a834a11
256ebfc
63707d6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,36 +31,27 @@ jobs: | |
| python-version: ["3.11", "3.12", "3.13"] | ||
| full-deps: [true, ] | ||
| codecov: [true, ] | ||
| cython: ["cython<3.1", ] | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The testing of cython < 3.1 and cython >3.1 is intentional. |
||
| include: | ||
| # Including 3.14 and 3.11 without coverage | ||
| # and cython >=3.1 to deal temporarily with | ||
| # keeping on testing Cython whilst issue #5057 | ||
| # is not fixed | ||
| - name: python_314_nocov | ||
| os: ubuntu-latest | ||
| python-version: "3.14" | ||
| full-deps: false | ||
| codecov: false | ||
| cython: "cython>=3.1" | ||
| - name: python_311_nocov | ||
| os: ubuntu-latest | ||
| python-version: "3.11" | ||
| full-deps: false | ||
| codecov: false | ||
| cython: "cython>=3.1" | ||
| - name: macOS_14_arm64_py313 | ||
| os: macOS-14 | ||
| python-version: "3.13" | ||
| full-deps: false | ||
| codecov: true | ||
| cython: "cython<3.1" | ||
| - name: ubuntu_arm | ||
| os: ubuntu-24.04-arm | ||
| python-version: "3.13" | ||
| full-deps: false | ||
| codecov: false | ||
| cython: "cython>3.1" | ||
| - name: numpy_min | ||
| os: ubuntu-latest | ||
| python-version: "3.11" | ||
|
|
@@ -105,7 +96,6 @@ jobs: | |
| full-deps: ${{ matrix.full-deps }} | ||
| # disable GSD because it occasionally introduce hanging in testing #4209 | ||
| gsd: '' | ||
| # pin cython | ||
| cython: ${{ matrix.cython }} | ||
| # in most cases will just default to empty, i.e. pick up max version from other deps | ||
| numpy: ${{ matrix.numpy }} | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -83,7 +83,11 @@ | |
| ) | ||
| ) | ||
| cython_found = False | ||
| cython_linetrace = bool(os.environ.get("CYTHON_TRACE_NOGIL", False)) | ||
| if Version(Cython.__version__) >= Version("3.1.0"): | ||
| # Cython 3.1+ has worker crash bugs with linetrace (Issue #5057) | ||
| cython_linetrace = False | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This would change the tracing Seems like the desired solution would be to fix the upstream issue (cython/cython#6658) and then always require a very recent version of Cython, which is generally considered quite acceptable b/c it is a build time/dev dep. For example, SciPy requires |
||
| else: | ||
| cython_linetrace = bool(os.environ.get("CYTHON_TRACE_NOGIL", False)) | ||
| except ImportError: | ||
| cython_found = False | ||
| if not is_release: | ||
|
|
@@ -353,8 +357,15 @@ def extensions(config): | |
| mathlib = ["m"] | ||
|
|
||
| if cython_linetrace: | ||
| extra_compile_args.append("-DCYTHON_TRACE_NOGIL") | ||
| cpp_extra_compile_args.append("-DCYTHON_TRACE_NOGIL") | ||
| extra_compile_args.extend( | ||
| ["-DCYTHON_TRACE_NOGIL=1", "-DCYTHON_TRACE=1"] | ||
| ) | ||
| cpp_extra_compile_args.extend( | ||
| ["-DCYTHON_TRACE_NOGIL=1", "-DCYTHON_TRACE=1"] | ||
| ) | ||
| encore_compile_args.extend( | ||
| ["-DCYTHON_TRACE_NOGIL=1", "-DCYTHON_TRACE=1"] | ||
| ) | ||
|
|
||
| libdcd = MDAExtension( | ||
| "MDAnalysis.lib.formats.libdcd", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't believe that just disabling coverage is the solution to this issue.