Skip to content

Commit

Permalink
Using Cython stable version
Browse files Browse the repository at this point in the history
Co-authored-by: ajsanchezsanz <[email protected]>
Co-authored-by: markgreene74 <[email protected]>
  • Loading branch information
ajsanchezsanz and markgreene74 committed Nov 9, 2024
1 parent d6a65eb commit ee03913
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGES/1412.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Removed usage of Cython pre-release versions -- by :user:`ajsanchezsanz`, :user:`markgreene74`.
7 changes: 1 addition & 6 deletions packaging/pep517_backend/_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from shutil import copytree
from sys import implementation as _system_implementation
from sys import stderr as _standard_error_stream
from sys import version_info as _python_version_tuple
from tempfile import TemporaryDirectory
from warnings import warn as _warn_that

Expand Down Expand Up @@ -82,9 +81,6 @@
PURE_PYTHON_ENV_VAR = 'YARL_NO_EXTENSIONS'
"""Environment variable name toggle used to opt out of making C-exts."""

IS_PY3_12_PLUS = _python_version_tuple[:2] >= (3, 12)
"""A flag meaning that the current runtime is Python 3.12 or higher."""

IS_CPYTHON = _system_implementation.name == "cpython"
"""A flag meaning that the current interpreter implementation is CPython."""

Expand Down Expand Up @@ -378,8 +374,7 @@ def get_requires_for_build_wheel(
)

c_ext_build_deps = [] if is_pure_python_build else [
'Cython >= 3.0.0b3' if IS_PY3_12_PLUS # Only Cython 3+ is compatible
else 'Cython',
'Cython >= 3.0.0, < 3.1.0',
]

return _setuptools_get_requires_for_build_wheel(
Expand Down

0 comments on commit ee03913

Please sign in to comment.