diff options
author | Leon Anavi <leon.anavi@konsulko.com> | 2025-01-29 13:40:33 +0200 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2025-01-29 17:43:04 -0800 |
commit | 0d3d116edb2adb6fc8b53308aaa744c1232c6b20 (patch) | |
tree | cee1d41cddf42e5495afd274ae6c2bca6d8a744a /meta-python/recipes-devtools/python/python3-scikit-build-core | |
parent | 1941ab64ed080944a73dc5876bbaae22622a0ebd (diff) | |
download | meta-openembedded-0d3d116edb2adb6fc8b53308aaa744c1232c6b20.tar.gz |
python3-scikit-build-core: Use PYTHON_INCLUDE_DIR
Add a patch to use PYTHON_INCLUDE_DIR to find Python Interpreter
and Development.Module as suggested by Stephan Kulow:
https://github.com/scikit-build/scikit-build-core/issues/952#issuecomment-2554058930
This work was sponsored by GOVCERT.LU.
Suggested-by: Stephan Kulow <stephan.kulow@siemens.com>
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-scikit-build-core')
-rw-r--r-- | meta-python/recipes-devtools/python/python3-scikit-build-core/0001-builder.py-Check-PYTHON_INCLUDE_DIR.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-scikit-build-core/0001-builder.py-Check-PYTHON_INCLUDE_DIR.patch b/meta-python/recipes-devtools/python/python3-scikit-build-core/0001-builder.py-Check-PYTHON_INCLUDE_DIR.patch new file mode 100644 index 0000000000..13cb7b1e7f --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-scikit-build-core/0001-builder.py-Check-PYTHON_INCLUDE_DIR.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From 5bc2d175c6a31a3de04444e5e22af310799ab10d Mon Sep 17 00:00:00 2001 | ||
2 | From: Leon Anavi <leon.anavi@konsulko.com> | ||
3 | Date: Mon, 27 Jan 2025 19:17:48 +0200 | ||
4 | Subject: [PATCH] builder.py: Check PYTHON_INCLUDE_DIR | ||
5 | |||
6 | Use PYTHON_INCLUDE_DIR to find Python Interpreter and | ||
7 | Development.Module. | ||
8 | |||
9 | Upstream-Status: Inappropriate [oe specific] | ||
10 | |||
11 | Suggested-by: Stephan Kulow <stephan.kulow@siemens.com> | ||
12 | Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> | ||
13 | --- | ||
14 | src/scikit_build_core/builder/builder.py | 2 +- | ||
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/src/scikit_build_core/builder/builder.py b/src/scikit_build_core/builder/builder.py | ||
18 | index b19173f..f4fb2af 100644 | ||
19 | --- a/src/scikit_build_core/builder/builder.py | ||
20 | +++ b/src/scikit_build_core/builder/builder.py | ||
21 | @@ -203,7 +203,7 @@ class Builder: | ||
22 | python_sabi_library = ( | ||
23 | get_python_library(self.config.env, abi3=True) if limited_api else None | ||
24 | ) | ||
25 | - python_include_dir = get_python_include_dir() | ||
26 | + python_include_dir = os.getenv("PYTHON_INCLUDE_DIR") or get_python_include_dir() | ||
27 | numpy_include_dir = get_numpy_include_dir() | ||
28 | |||
29 | # Classic Find Python | ||
30 | -- | ||
31 | 2.39.5 | ||
32 | |||