Skip to content

Commit

Permalink
Add support for Cython3 (#1099)
Browse files Browse the repository at this point in the history
  • Loading branch information
jopohl committed Jan 21, 2024
1 parent e0f94fa commit 8a34513
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion data/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
numpy
pyqt5
psutil
cython<3.0.0
cython
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def read_long_description():
return ""


install_requires = ["numpy", "psutil", "cython<3.0.0"]
install_requires = ["numpy", "psutil", "cython"]
if IS_RELEASE:
install_requires.append("pyqt5")
else:
Expand Down
4 changes: 2 additions & 2 deletions src/urh/dev/native/lib/sdrplay.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ cdef void __rx_stream_callback(short *xi, short *xq, unsigned int firstSampleNum
PyGILState_Release(gstate)
free(data)

cdef void _rx_stream_callback(short *xi, short *xq, unsigned int firstSampleNum, int grChanged, int rfChanged, int fsChanged, unsigned int numSamples, unsigned int reset, unsigned int hwRemoved, void *cbContext):
cdef void _rx_stream_callback(short *xi, short *xq, unsigned int firstSampleNum, int grChanged, int rfChanged, int fsChanged, unsigned int numSamples, unsigned int reset, unsigned int hwRemoved, void *cbContext) noexcept:
__rx_stream_callback(xi, xq, firstSampleNum, grChanged, rfChanged, fsChanged, numSamples, reset, cbContext)

cdef void _gain_change_callback(unsigned int gRdB, unsigned int lnaGRdB, void *cbContext):
cdef void _gain_change_callback(unsigned int gRdB, unsigned int lnaGRdB, void *cbContext) noexcept:
return

cpdef void set_gr_mode_for_dev_model(int dev_model):
Expand Down

0 comments on commit 8a34513

Please sign in to comment.