diff options
| author | Tim Orling <tim.orling@konsulko.com> | 2024-08-12 21:18:52 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-08-15 14:51:55 +0100 |
| commit | 36d7994e7e3925b7c031837e84b03309a4634cdb (patch) | |
| tree | 2b6aaa0aea6ad0ebcca257212517c9ae009556a4 /meta/recipes-devtools/python/python3-cffi_1.17.0.bb | |
| parent | bb6241fcdc62b7af0f87364a5e8808f94a21ab5b (diff) | |
| download | poky-36d7994e7e3925b7c031837e84b03309a4634cdb.tar.gz | |
python3-cffi: upgrade 1.16.0 -> 1.17.0
https://github.com/python-cffi/cffi/compare/v1.17.0...v1.16.0
https://cffi.readthedocs.io/en/latest/whatsnew.html#v1-17
v1.17
* In API mode, when you get a function from a C library by writing
fn = lib.myfunc, you get an object of a special type for performance
reasons, instead of a <cdata ‘C-function-type’>. Before version 1.17 you
could only call such objects. You could write ffi.addressof(lib, “myfunc”)
in order to get a real <cdata> object, based on the idea that in these cases
in C you’d usually write &myfunc instead of myfunc. In version 1.17, the
special object lib.myfunc can now be passed in many places where CFFI expects
a regular <cdata> object. For example, you can now pass it as a callback to a
C function call, or write it inside a C structure field of the correct
pointer-to-function type, or use ffi.cast() or ffi.typeof() on it.
(From OE-Core rev: 375e59bfb4d610f89dd04c93f912d5847a5fac4f)
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python3-cffi_1.17.0.bb')
| -rw-r--r-- | meta/recipes-devtools/python/python3-cffi_1.17.0.bb | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3-cffi_1.17.0.bb b/meta/recipes-devtools/python/python3-cffi_1.17.0.bb new file mode 100644 index 0000000000..28200f9b43 --- /dev/null +++ b/meta/recipes-devtools/python/python3-cffi_1.17.0.bb | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | SUMMARY = "Foreign Function Interface for Python calling C code" | ||
| 2 | HOMEPAGE = "http://cffi.readthedocs.org/" | ||
| 3 | LICENSE = "MIT" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=5677e2fdbf7cdda61d6dd2b57df547bf" | ||
| 5 | DEPENDS += "libffi python3-pycparser" | ||
| 6 | |||
| 7 | SRC_URI[sha256sum] = "f3157624b7558b914cb039fd1af735e5e8049a87c817cc215109ad1c8779df76" | ||
| 8 | |||
| 9 | SRC_URI += "file://run-ptest" | ||
| 10 | |||
| 11 | inherit pypi python_setuptools_build_meta ptest | ||
| 12 | |||
| 13 | do_install_ptest() { | ||
| 14 | cp -r ${S}/testing ${D}${PTEST_PATH} | ||
| 15 | # These two files from the source tree are needed by the tests | ||
| 16 | install -D -m644 ${S}/src/c/parse_c_type.c ${D}${PTEST_PATH}/src/c/parse_c_type.c | ||
| 17 | install -D -m644 ${S}/src/cffi/parse_c_type.h ${D}${PTEST_PATH}/src/cffi/parse_c_type.h | ||
| 18 | } | ||
| 19 | |||
| 20 | RDEPENDS:${PN} = " \ | ||
| 21 | python3-ctypes \ | ||
| 22 | python3-io \ | ||
| 23 | python3-pycparser \ | ||
| 24 | python3-setuptools \ | ||
| 25 | python3-shell \ | ||
| 26 | " | ||
| 27 | |||
| 28 | RDEPENDS:${PN}-ptest += " \ | ||
| 29 | python3-pytest \ | ||
| 30 | python3-unittest-automake-output \ | ||
| 31 | python3-dev \ | ||
| 32 | gcc-symlinks \ | ||
| 33 | g++-symlinks \ | ||
| 34 | " | ||
| 35 | |||
| 36 | INSANE_SKIP:${PN}-ptest = "dev-deps" | ||
| 37 | |||
| 38 | BBCLASSEXTEND = "native nativesdk" | ||
