2 ## Copyright (C) 2019 Wind River Systems, Inc.
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
22 python3-numpy-native \
25 PACKAGECONFIG = "locale python"
26 PACKAGECONFIG[python] = ",,${DEP_PYTHON}"
28 BJAM_OPTS += "${@bb.utils.contains('BOOST_LIBS', 'python', 'python=${PYTHON_BASEVERSION},2.7', '', d)}"
30 do_configure_append () {
31 if ${@bb.utils.contains('BOOST_LIBS', 'python', 'true', 'false', d)}; then
32 echo "using python : 2.7 : ${STAGING_BINDIR_NATIVE}/python-native/python : ${STAGING_INCDIR}/python2.7 : ${STAGING_LIBDIR}/python2.7 ;" >> ${WORKDIR}/user-config.jam
33 sed -i -e 's|${STAGING_DIR_HOST}${bindir}/python3|${STAGING_BINDIR_NATIVE}/python3-native/python3|' ${WORKDIR}/user-config.jam
37 PACKAGES += "${PN}-python3"
39 FILES_${PN}-python = " \
40 ${libdir}/libboost_python2*.so.* \
41 ${libdir}/libboost_numpy2*.so.* \
43 FILES_${PN}-python3 = " \
44 ${libdir}/libboost_python3*.so.* \
45 ${libdir}/libboost_numpy3*.so.* \