Skip to content

Commit c9e1ac0

Browse files
committed
Adapt for Cython 3.x
1 parent 661639c commit c9e1ac0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = cpython-34m
1+
VERSION = cpython-311-x86_64-linux-gnu
22
HELLO_WORLD_LIB = hello_world.$(VERSION).so
33

44
all: $(HELLO_WORLD_LIB)
@@ -8,4 +8,5 @@ $(HELLO_WORLD_LIB): hello_world.pyx
88

99
clean:
1010
python setup.py clean
11-
rm -f hello_world.c $(HELLO_WORLD_LIB)
11+
$(RM) $(HELLO_WORLD_LIB) hello_world.c
12+
$(RM) -r build

source-code/cython/HelloWorld/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("hello_world.pyx")
7+
ext_modules=cythonize("hello_world.pyx", compiler_directives={'language_level' : "3"})
88
)

0 commit comments

Comments
 (0)