diff options
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/python3native.bbclass | 8 | ||||
-rw-r--r-- | meta/classes/pythonnative.bbclass | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/meta/classes/python3native.bbclass b/meta/classes/python3native.bbclass index a3acaf61bb..d98fb4c758 100644 --- a/meta/classes/python3native.bbclass +++ b/meta/classes/python3native.bbclass | |||
@@ -9,6 +9,14 @@ DEPENDS_append = " python3-native " | |||
9 | export STAGING_INCDIR | 9 | export STAGING_INCDIR |
10 | export STAGING_LIBDIR | 10 | export STAGING_LIBDIR |
11 | 11 | ||
12 | # Packages can use | ||
13 | # find_package(PythonInterp REQUIRED) | ||
14 | # find_package(PythonLibs REQUIRED) | ||
15 | # which ends up using libs/includes from build host | ||
16 | # Therefore pre-empt that effort | ||
17 | export PYTHON_LIBRARY="${STAGING_LIBDIR}/lib${PYTHON_DIR}${PYTHON_ABI}.so" | ||
18 | export PYTHON_INCLUDE_DIR="${STAGING_INCDIR}/${PYTHON_DIR}${PYTHON_ABI}" | ||
19 | |||
12 | export _PYTHON_SYSCONFIGDATA_NAME="_sysconfigdata" | 20 | export _PYTHON_SYSCONFIGDATA_NAME="_sysconfigdata" |
13 | 21 | ||
14 | # suppress host user's site-packages dirs. | 22 | # suppress host user's site-packages dirs. |
diff --git a/meta/classes/pythonnative.bbclass b/meta/classes/pythonnative.bbclass index ae6600cd15..0e9019d1e2 100644 --- a/meta/classes/pythonnative.bbclass +++ b/meta/classes/pythonnative.bbclass | |||
@@ -12,6 +12,14 @@ DEPENDS_append = " python-native " | |||
12 | export STAGING_INCDIR | 12 | export STAGING_INCDIR |
13 | export STAGING_LIBDIR | 13 | export STAGING_LIBDIR |
14 | 14 | ||
15 | # Packages can use | ||
16 | # find_package(PythonInterp REQUIRED) | ||
17 | # find_package(PythonLibs REQUIRED) | ||
18 | # which ends up using libs/includes from build host | ||
19 | # Therefore pre-empt that effort | ||
20 | export PYTHON_LIBRARY="${STAGING_LIBDIR}/lib${PYTHON_DIR}${PYTHON_ABI}.so" | ||
21 | export PYTHON_INCLUDE_DIR="${STAGING_INCDIR}/${PYTHON_DIR}${PYTHON_ABI}" | ||
22 | |||
15 | # suppress host user's site-packages dirs. | 23 | # suppress host user's site-packages dirs. |
16 | export PYTHONNOUSERSITE = "1" | 24 | export PYTHONNOUSERSITE = "1" |
17 | 25 | ||