feat(bindings): add query constants to python

This commit is contained in:
ObserverOfTime 2024-03-04 14:35:57 +02:00 committed by Amaan Qureshi
parent 4a8be390f0
commit fd0e1c7b5b
No known key found for this signature in database
GPG key ID: E67890ADC4227273
6 changed files with 58 additions and 10 deletions

View file

@ -18,7 +18,7 @@ class BdistWheel(bdist_wheel):
def get_tag(self):
python, abi, platform = super().get_tag()
if python.startswith("cp"):
python, abi = "cp38", "abi3"
python, abi = "cp39", "abi3"
return python, abi, platform
@ -40,13 +40,15 @@ setup(
],
extra_compile_args=[
"-std=c11",
"-fvisibility=hidden",
] if system() != "Windows" else [
"/std:c11",
"/utf-8",
],
define_macros=[
("Py_LIMITED_API", "0x03080000"),
("PY_SSIZE_T_CLEAN", None)
("Py_LIMITED_API", "0x03090000"),
("PY_SSIZE_T_CLEAN", None),
("TREE_SITTER_HIDE_SYMBOLS", None),
],
include_dirs=["src"],
py_limited_api=True,