Rogdham / pyzstd

Python bindings to Zstandard (zstd) compression library, the API style is similar to Python's bz2/lzma/zlib modules.
https://pyzstd.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
11 stars 3 forks source link

Add support for Python 3.13 #13

Closed gotmax23 closed 2 weeks ago

gotmax23 commented 2 weeks ago

The package currently fails to build with Python 3.13 due to changes in the Python C API:

  src/bin_ext/macro_functions.h: In function ‘set_c_parameters’:
  src/bin_ext/macro_functions.h:17:27: error: implicit declaration of function ‘_PyLong_AsInt’; did you mean ‘PyLong_AsInt’? [-Wimplicit-function-declaration]
     17 |         const int level = _PyLong_AsInt(level_or_option);
        |                           ^~~~~~~~~~~~~
        |                           PyLong_AsInt
Rogdham commented 2 weeks ago

Thank you for the heads up about the breaking change in the next version of Python!