From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Date: Fri, 22 Nov 2019 15:22:51 +0100 From: Michael Olbrich Message-ID: <20191122142251.GG1287@pengutronix.de> References: <20191121091557.22313-1-guille.rodriguez@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20191121091557.22313-1-guille.rodriguez@gmail.com> Subject: Re: [ptxdist] [PATCH] python3-cffi: New package List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Cc: Guillermo =?iso-8859-1?Q?Rodr=EDguez?= On Thu, Nov 21, 2019 at 10:15:57AM +0100, Guillermo Rodr=EDguez wrote: > Foreign Function Interface for Python calling C code. > = > Signed-off-by: Guillermo Rodriguez > --- > rules/python3-cffi.in | 8 ++++++ > rules/python3-cffi.make | 56 +++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 64 insertions(+) > create mode 100644 rules/python3-cffi.in > create mode 100644 rules/python3-cffi.make > = > diff --git a/rules/python3-cffi.in b/rules/python3-cffi.in > new file mode 100644 > index 000000000..5b30de6d3 > --- /dev/null > +++ b/rules/python3-cffi.in > @@ -0,0 +1,8 @@ > +## SECTION=3Dpython3 > + > +config PYTHON3_CFFI > + tristate > + select PYTHON3 > + prompt "python3-ccfi" > + help > + Foreign Function Interface for Python calling C code. > diff --git a/rules/python3-cffi.make b/rules/python3-cffi.make > new file mode 100644 > index 000000000..5c6524d2c > --- /dev/null > +++ b/rules/python3-cffi.make > @@ -0,0 +1,56 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2019 by Guillermo Rodriguez > +# > +# For further information about the PTXdist project and license conditio= ns > +# see the README file. > +# > + > +# > +# We provide this package > +# > +PACKAGES-$(PTXCONF_PYTHON3_CFFI) +=3D python3-cffi > + > +# > +# Paths and names > +# > +PYTHON3_CFFI_VERSION :=3D 1.13.2 > +PYTHON3_CFFI_MD5 :=3D 652203cf99faa254efff7fab23c2f3a2 > +PYTHON3_CFFI :=3D cffi-$(PYTHON3_CFFI_VERSION) > +PYTHON3_CFFI_SUFFIX :=3D tar.gz > +PYTHON3_CFFI_URL :=3D https://pypi.python.org/packages/source/c/cffi/$(P= YTHON3_CFFI).$(PYTHON3_CFFI_SUFFIX) > +PYTHON3_CFFI_SOURCE :=3D $(SRCDIR)/$(PYTHON3_CFFI).$(PYTHON3_CFFI_SUFFIX) > +PYTHON3_CFFI_DIR :=3D $(BUILDDIR)/$(PYTHON3_CFFI) > +PYTHON3_CFFI_LICENSE :=3D MIT > +PYTHON3_CFFI_LICENSE_FILES :=3D \ > + file://LICENSE;md5=3D5677e2fdbf7cdda61d6dd2b57df547bf = Trailing Whitespace. > + > +# ----------------------------------------------------------------------= ------ > +# Prepare > +# ----------------------------------------------------------------------= ------ > + > +PYTHON3_CFFI_CONF_TOOL :=3D python3 > + > +# ----------------------------------------------------------------------= ------ > +# Target-Install > +# ----------------------------------------------------------------------= ------ > + > +$(STATEDIR)/python3-cffi.targetinstall: > + @$(call targetinfo) > + > + @$(call install_init, python3-cffi) > + @$(call install_fixup, python3-cffi, PRIORITY, optional) > + @$(call install_fixup, python3-cffi, SECTION, base) > + @$(call install_fixup, python3-cffi, AUTHOR, "Guillermo Rodriguez ") > + @$(call install_fixup, python3-cffi, DESCRIPTION, missing) > + > + @$(call install_glob, python3-cffi, 0, 0, -, \ > + /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages,, *.py *.h) I think this should be: /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages/cffi,, *.py *.h) Otherwise the egg-info stuff is installed, and I'm pretty sure that's not needed, right? > + = Trailing Whitespace. Michael > + @$(call install_lib, python3-cffi, 0, 0, 0644, python$(PYTHON3_MAJORMIN= OR)/site-packages/_cffi_backend.cpython*) > + > + @$(call install_finish, python3-cffi) > + > + @$(call touch) > + > +# vim: syntax=3Dmake > -- = > 2.21.0 > = > = > _______________________________________________ > ptxdist mailing list > ptxdist@pengutronix.de > = -- = Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de