mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Guillermo Rodriguez Garcia <guille.rodriguez@gmail.com>
To: ptxdist@pengutronix.de,
	"Guillermo Rodríguez" <guille.rodriguez@gmail.com>
Subject: Re: [ptxdist] [PATCH] python3-cffi: New package
Date: Mon, 25 Nov 2019 10:13:00 +0100	[thread overview]
Message-ID: <CABDcavazLbhP7UoAX=N3S_9vnwPJzbuGGRb+Vsi__KNujrRLxA@mail.gmail.com> (raw)
In-Reply-To: <20191122142251.GG1287@pengutronix.de>

El vie., 22 nov. 2019 a las 15:22, Michael Olbrich
(<m.olbrich@pengutronix.de>) escribió:
>
> On Thu, Nov 21, 2019 at 10:15:57AM +0100, Guillermo Rodríguez wrote:
> > Foreign Function Interface for Python calling C code.
> >
> > Signed-off-by: Guillermo Rodriguez <guille.rodriguez@gmail.com>
> > ---
> >  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=python3
> > +
> > +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 <guille.rodriguez@gmail.com>
> > +#
> > +# For further information about the PTXdist project and license conditions
> > +# see the README file.
> > +#
> > +
> > +#
> > +# We provide this package
> > +#
> > +PACKAGES-$(PTXCONF_PYTHON3_CFFI) += python3-cffi
> > +
> > +#
> > +# Paths and names
> > +#
> > +PYTHON3_CFFI_VERSION := 1.13.2
> > +PYTHON3_CFFI_MD5     := 652203cf99faa254efff7fab23c2f3a2
> > +PYTHON3_CFFI         := cffi-$(PYTHON3_CFFI_VERSION)
> > +PYTHON3_CFFI_SUFFIX  := tar.gz
> > +PYTHON3_CFFI_URL     := https://pypi.python.org/packages/source/c/cffi/$(PYTHON3_CFFI).$(PYTHON3_CFFI_SUFFIX)
> > +PYTHON3_CFFI_SOURCE  := $(SRCDIR)/$(PYTHON3_CFFI).$(PYTHON3_CFFI_SUFFIX)
> > +PYTHON3_CFFI_DIR     := $(BUILDDIR)/$(PYTHON3_CFFI)
> > +PYTHON3_CFFI_LICENSE := MIT
> > +PYTHON3_CFFI_LICENSE_FILES := \
> > +     file://LICENSE;md5=5677e2fdbf7cdda61d6dd2b57df547bf
>
> Trailing Whitespace.
>
> > +
> > +# ----------------------------------------------------------------------------
> > +# Prepare
> > +# ----------------------------------------------------------------------------
> > +
> > +PYTHON3_CFFI_CONF_TOOL       := 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 <guille.rodriguez@gmail.com>")
> > +     @$(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?

Right. This is fixed in v2 already.

Will take care of whitespace and resend.

Guillermo

>
> > +
>
> Trailing Whitespace.
>
> Michael
>
> > +     @$(call install_lib, python3-cffi, 0, 0, 0644, python$(PYTHON3_MAJORMINOR)/site-packages/_cffi_backend.cpython*)
> > +
> > +     @$(call install_finish, python3-cffi)
> > +
> > +     @$(call touch)
> > +
> > +# vim: syntax=make
> > --
> > 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 |



-- 
Guillermo Rodriguez Garcia
guille.rodriguez@gmail.com

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

      reply	other threads:[~2019-11-25  9:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-21  9:15 Guillermo Rodríguez
2019-11-21 11:52 ` [ptxdist] [PATCH v2] " Guillermo Rodríguez
2019-11-25  9:21   ` [ptxdist] [PATCH v3] " Guillermo Rodríguez
2019-11-22 14:22 ` [ptxdist] [PATCH] " Michael Olbrich
2019-11-25  9:13   ` Guillermo Rodriguez Garcia [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CABDcavazLbhP7UoAX=N3S_9vnwPJzbuGGRb+Vsi__KNujrRLxA@mail.gmail.com' \
    --to=guille.rodriguez@gmail.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox