[Buildroot] [git commit] python: new module cffi

Oli Vogt oli.vogt.pub01 at gmail.com
Tue Jul 29 23:10:56 UTC 2014


Dear Thomas.

Thank's for accepting the patch and making sure that it builds with Python3.

By the way, LIBFFI is already selected from 'python' which of course
'python-cffi' depends on.
---------
python/Config.in-2-    bool "python"
python/Config.in-3-    depends on BR2_USE_WCHAR
python/Config.in-4-    # uses fork()
python/Config.in-5-    depends on BR2_USE_MMU
python/Config.in:6:    select BR2_PACKAGE_LIBFFI
python/Config.in-7-    help
python/Config.in-8-      The python language interpreter.
python/Config.in-9-
python/Config.in-10-      http://www.python.org/
--------

I agree that it is better do 'double-up' the dependency since a future
version of Python could drop its dependency on libffi.

Cheers, oli


On 30 July 2014 07:31, Thomas Petazzoni <thomas.petazzoni at free-electrons.com
> wrote:

> commit:
> http://git.buildroot.net/buildroot/commit/?id=e5bf154592691b104e2ee0f97f9fcaf8cce54a52
> branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master
>
> Foreign Function Interface for Python calling C code.
>
> [Thomas: add dependency on host-pkgconf and libffi, enable on Python 3
> since the module builds fine and loads fine with Python 3 as well.]
>
> Signed-off-by: oli vogt <oli.vogt.pub01 at gmail.com>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
> ---
>  package/Config.in                  |    1 +
>  package/python-cffi/Config.in      |   10 ++++++++++
>  package/python-cffi/python-cffi.mk |   15 +++++++++++++++
>  3 files changed, 26 insertions(+), 0 deletions(-)
>
> diff --git a/package/Config.in b/package/Config.in
> index 11087da..29b8e6b 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -469,6 +469,7 @@ endif
>  if BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON3
>  menu "external python modules"
>         source "package/python-bottle/Config.in"
> +       source "package/python-cffi/Config.in"
>         source "package/python-configobj/Config.in"
>         source "package/python-crc16/Config.in"
>         source "package/python-daemon/Config.in"
> diff --git a/package/python-cffi/Config.in b/package/python-cffi/Config.in
> new file mode 100644
> index 0000000..f18ed96
> --- /dev/null
> +++ b/package/python-cffi/Config.in
> @@ -0,0 +1,10 @@
> +config BR2_PACKAGE_PYTHON_CFFI
> +       bool "python-cffi"
> +       depends on BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON3
> +       select BR2_PACKAGE_LIBFFI
> +       help
> +         This is the Foreign Function Interface for Python calling C
> +         code.  The aim of this project is to provide a convenient
> +         and reliable way of calling C code from Python.
> +
> +         https://pypi.python.org/pypi/cffi
> diff --git a/package/python-cffi/python-cffi.mk b/package/python-cffi/
> python-cffi.mk
> new file mode 100644
> index 0000000..8499a7b
> --- /dev/null
> +++ b/package/python-cffi/python-cffi.mk
> @@ -0,0 +1,15 @@
>
> +################################################################################
> +#
> +# python-cffi
> +#
>
> +################################################################################
> +
> +PYTHON_CFFI_VERSION = 0.8.2
> +PYTHON_CFFI_SOURCE = cffi-$(PYTHON_CFFI_VERSION).tar.gz
> +PYTHON_CFFI_SITE = https://pypi.python.org/packages/source/c/cffi/
> +PYTHON_CFFI_SETUP_TYPE = setuptools
> +PYTHON_CFFI_DEPENDENCIES = host-pkgconf libffi
> +PYTHON_CFFI_LICENSE = MIT
> +PYTHON_CFFI_LICENSE_FILES = LICENSE
> +
> +$(eval $(python-package))
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140730/fb52a475/attachment-0002.html>


More information about the buildroot mailing list