diff options
author | Philip Balister <philip@balister.org> | 2020-07-10 12:19:06 -0400 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2020-07-12 19:04:17 -0700 |
commit | 7ebbd785185043bed935a6f3310af3dd78461d86 (patch) | |
tree | 0c626663ea406246f7ea53d52b24f89fbe3174cf /meta-python/recipes-devtools/python/python3-pybind11_2.5.0.bb | |
parent | 66793d35421bdf7d945152b3bffd52d66115f268 (diff) | |
download | meta-openembedded-7ebbd785185043bed935a6f3310af3dd78461d86.tar.gz |
python3-pybind11: Use cmake to build and add -native version
* Switch to git repo to pick up cmake files for recipes to use
* Use cmake to build innstead of pypi so cmake files are included in sysroot
* Disable tests to prevent configure failure (I tried adding pytest asa DEPEND)
* Patch out cmake that strips output to prevent QA failures
* Do not check pointer length for installed python when cross compiling.
* With this I can build gnuradio using pybind11.
Signed-off-by: Philip Balister <philip@balister.org>
Acked-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-pybind11_2.5.0.bb')
-rw-r--r-- | meta-python/recipes-devtools/python/python3-pybind11_2.5.0.bb | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pybind11_2.5.0.bb b/meta-python/recipes-devtools/python/python3-pybind11_2.5.0.bb index dc3b8f6adf..46bba8d8d1 100644 --- a/meta-python/recipes-devtools/python/python3-pybind11_2.5.0.bb +++ b/meta-python/recipes-devtools/python/python3-pybind11_2.5.0.bb | |||
@@ -3,7 +3,18 @@ HOMEPAGE = "https://github.com/wjakob/pybind11" | |||
3 | LICENSE = "BSD-2-Clause" | 3 | LICENSE = "BSD-2-Clause" |
4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=beb87117af69fd10fbf9fb14c22a2e62" | 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=beb87117af69fd10fbf9fb14c22a2e62" |
5 | 5 | ||
6 | SRC_URI[md5sum] = "5355e1fd05c8eedef19cc9bfd3d82a77" | 6 | DEPENDS = "boost" |
7 | SRC_URI[sha256sum] = "ea5a4e7a880112915463826f1acbec5892df36dfe102ecb249229ac514fb54ad" | ||
8 | 7 | ||
9 | inherit pypi setuptools3 | 8 | SRC_URI = "git://github.com/pybind/pybind11.git \ |
9 | file://0001-Do-not-strip-binaries.patch \ | ||
10 | file://0001-Do-not-check-pointer-size-when-cross-compiling.patch \ | ||
11 | " | ||
12 | SRCREV = "3b1dbebabc801c9cf6f0953a4c20b904d444f879" | ||
13 | |||
14 | S = "${WORKDIR}/git" | ||
15 | |||
16 | BBCLASSEXTEND = "native" | ||
17 | |||
18 | EXTRA_OECMAKE = "-DPYBIND11_TEST=OFF" | ||
19 | |||
20 | inherit cmake python3native | ||