Skip to content

Commit

Permalink
Exclude cython 3.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Baekalfen committed Oct 17, 2023
1 parent 8b7c054 commit 09ba432
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pr-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
- name: Install Python dependencies
run: |
pip install wheel
pip install --prefer-binary -r requirements.txt
- name: Build PyBoy
run: |
python setup.py build_ext -j $(getconf _NPROCESSORS_ONLN) --inplace
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Change in setup.py
cython>=0.29.16; platform_python_implementation == 'CPython'
cython>=0.29.16,!=3.0.4; platform_python_implementation == 'CPython'
numpy
pysdl2
pysdl2-dll
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# The requirements.txt file will not be included in the PyPi package
REQUIREMENTS = """\
# Change in setup.py
cython>=0.29.16; platform_python_implementation == 'CPython'
cython>=0.29.16,!=3.0.4; platform_python_implementation == 'CPython'
numpy
pysdl2
pysdl2-dll
Expand All @@ -37,10 +37,10 @@ def load_requirements(filename):
if CYTHON:
# "Recommended" method of installing Cython: https://github.com/pypa/pip/issues/5761
from setuptools import dist
dist.Distribution().fetch_build_eggs(["cython>=0.29.16"])
dist.Distribution().fetch_build_eggs(["cython>=0.29.16,!=3.0.4"])

from Cython.Build import cythonize
import Cython.Compiler.Options
from Cython.Build import cythonize
from Cython.Distutils import build_ext
else:
try:
Expand Down

0 comments on commit 09ba432

Please sign in to comment.