Skip to content

Commit 90ac740

Browse files
committed
pybind/cephfs: use legacy noexcept for cdefs for cython 3.Y.Z
For some newer versions of cython, it appears it requires explicitly specifying noexcept but old versions of Cython 0.29.Z do not understand that attribute. See: https://cython.readthedocs.io/en/latest/src/userguide/migrating_to_cy30.html#exception-values-and-noexcept Signed-off-by: Patrick Donnelly <[email protected]>
1 parent 395263c commit 90ac740

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/pybind/cephfs/c_cephfs.pxd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# cython: language_level=3
2+
# cython: legacy_implicit_noexcept=True
3+
14
from libc.stdint cimport *
25
from types cimport *
36

src/pybind/cephfs/cephfs.pyx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# cython: language_level=3
2+
# cython: legacy_implicit_noexcept=True
3+
14
"""
25
This module is a thin wrapper around libcephfs.
36
"""

0 commit comments

Comments
 (0)