Skip to content

Commit

Permalink
Lower stable ABI requirement to Python 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
rhpvorderman committed Nov 27, 2024
1 parent d162fca commit a071f9d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion src/sequali/_qcmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,19 @@ You should have received a copy of the GNU Affero General Public License
along with Sequali. If not, see <https://www.gnu.org/licenses/
*/

#define Py_LIMITED_API 0x030B0000
#define Py_LIMITED_API 0x030A0000
#define PY_SSIZE_T_CLEAN
#include "Python.h"
#include "structmember.h"

/* Buffer constants have remained the same and it is a shame not to be
available for python versions below 3.11 for just these two missing
constants. */
#ifndef PyBUF_READ
#define PyBUF_READ 0x100
#define PyBUF_WRITE 0x200
#endif

#include "function_dispatch.h"
#include "murmur3.h"
#include "score_to_error_rate.h"
Expand Down
2 changes: 1 addition & 1 deletion src/sequali/_seqidentmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ You should have received a copy of the GNU Affero General Public License
along with Sequali. If not, see <https://www.gnu.org/licenses/
*/

#define Py_LIMITED_API 0x030B0000
#define Py_LIMITED_API 0x030A0000
#define PY_SSIZE_T_CLEAN
#include "Python.h"

Expand Down

0 comments on commit a071f9d

Please sign in to comment.