xref: /OK3568_Linux_fs/yocto/poky/meta/classes/python3native.bbclass (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1inherit python3-dir
2
3PYTHON="${STAGING_BINDIR_NATIVE}/python3-native/python3"
4EXTRANATIVEPATH += "python3-native"
5DEPENDS:append = " python3-native "
6
7# python-config and other scripts are using sysconfig modules
8# which we patch to access these variables
9export STAGING_INCDIR
10export STAGING_LIBDIR
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
17export PYTHON_LIBRARY="${STAGING_LIBDIR}/lib${PYTHON_DIR}${PYTHON_ABI}.so"
18export PYTHON_INCLUDE_DIR="${STAGING_INCDIR}/${PYTHON_DIR}${PYTHON_ABI}"
19
20# suppress host user's site-packages dirs.
21export PYTHONNOUSERSITE = "1"
22
23# autoconf macros will use their internal default preference otherwise
24export PYTHON
25