Skip to content

Commit d179ef2

Browse files
committed
Adapt for Cython 3.x
1 parent 98c62eb commit d179ef2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

source-code/cython/Classes/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = cpython-38-x86_64-linux-gnu
1+
VERSION = cpython-311-x86_64-linux-gnu
22
PRIMES_LIB = primes_cython.$(VERSION).so
33

44
all: $(PRIMES_LIB)
@@ -8,4 +8,4 @@ $(PRIMES_LIB): points.pyx
88

99
clean:
1010
python setup.py clean
11-
rm -f primes_cython.c $(PRIMES_LIB)
11+
$(RM) primes_cython.c $(PRIMES_LIB)

source-code/cython/Classes/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
from Cython.Build import cythonize
55

66
setup(
7-
ext_modules=cythonize('points.pyx')
7+
ext_modules=cythonize('points.pyx', language_level='3str')
88
)

0 commit comments

Comments
 (0)