Skip to content

Commit 15c20e1

Browse files
authored
Merge pull request #3319 from DreamNik/fix-meson-python-version
Fix numpy compilation when Python != 3.14
2 parents e928129 + ccf59d2 commit 15c20e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pythonforandroid/meson_python.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def handle_python_info():
1818

1919
prefix = C.TARGET_PYTHON_PREFIX
2020

21-
sysconfig_file = glob(join(prefix, "lib/python3.14/_sysconfigdata*.py"))[0]
21+
sysconfig_file = glob(join(prefix, f"lib/python{C.PYTHON_MAJOR_VERSION}.{C.PYTHON_MINOR_VERSION}/_sysconfigdata*.py"))[0]
2222

2323
spec = importlib.util.spec_from_file_location("_android_cfg", sysconfig_file)
2424
cfg = importlib.util.module_from_spec(spec)

0 commit comments

Comments
 (0)