On Fri, Jul 16, 2021 at 02:24:41PM +0200, Lars Pedersen wrote:
> Hi.
> 
> On Fri, 16 Jul 2021 at 12:23, Michael Olbrich <[email protected]> 
> wrote:
> >
> > On Mon, Jul 12, 2021 at 01:09:08PM +0200, Lars Pedersen wrote:
> > > Signed-off-by: Lars Pedersen <[email protected]>
> > > ---
> > > Changes since v1:
> > >  - Updated LICENSE field to BSD-2-Clause
> > >
> > >  rules/python3-pysmi.in   |  9 +++++++
> > >  rules/python3-pysmi.make | 54 ++++++++++++++++++++++++++++++++++++++++
> > >  2 files changed, 63 insertions(+)
> > >  create mode 100644 rules/python3-pysmi.in
> > >  create mode 100644 rules/python3-pysmi.make
> > >
> > > diff --git a/rules/python3-pysmi.in b/rules/python3-pysmi.in
> > > new file mode 100644
> > > index 000000000..a02d1b62d
> > > --- /dev/null
> > > +++ b/rules/python3-pysmi.in
> > > @@ -0,0 +1,9 @@
> > > +## SECTION=python3
> > > +
> > > +config PYTHON3_PYSMI
> > > +     tristate
> > > +     select PYTHON3
> > > +     select HOST_PYTHON3_SETUPTOOLS
> > > +     prompt "pysmi"
> > > +     help
> > > +       A pure-Python implementation of SNMP/SMI MIB parsing and 
> > > conversion library.
> > > diff --git a/rules/python3-pysmi.make b/rules/python3-pysmi.make
> > > new file mode 100644
> > > index 000000000..67448e2f7
> > > --- /dev/null
> > > +++ b/rules/python3-pysmi.make
> > > @@ -0,0 +1,54 @@
> > > +# -*-makefile-*-
> > > +#
> > > +# Copyright (C) 2021 by Lars Pedersen <[email protected]>
> > > +#
> > > +# For further information about the PTXdist project and license 
> > > conditions
> > > +# see the README file.
> > > +#
> > > +
> > > +#
> > > +# We provide this package
> > > +#
> > > +PACKAGES-$(PTXCONF_PYTHON3_PYSMI) += python3-pysmi
> > > +
> > > +#
> > > +# Paths and names
> > > +#
> > > +PYTHON3_PYSMI_VERSION        := 0.3.4
> > > +PYTHON3_PYSMI_MD5    := 10a9dd140ad512eed9f37344df83ce9d
> > > +PYTHON3_PYSMI                := pysmi-$(PYTHON3_PYSMI_VERSION)
> > > +PYTHON3_PYSMI_SUFFIX := tar.gz
> > > +PYTHON3_PYSMI_URL    := $(call ptx/mirror-pypi, pysmi, 
> > > $(PYTHON3_PYSMI).$(PYTHON3_PYSMI_SUFFIX))
> > > +PYTHON3_PYSMI_SOURCE := 
> > > $(SRCDIR)/$(PYTHON3_PYSMI).$(PYTHON3_PYSMI_SUFFIX)
> > > +PYTHON3_PYSMI_DIR    := $(BUILDDIR)/$(PYTHON3_PYSMI)
> > > +PYTHON3_PYSMI_LICENSE        := BSD-2-Clause
> > > +PYTHON3_PYSMI_LICENSE_FILES := \
> > > +     file://LICENSE.rst;md5=a088b5c72b59d51a5368ad3b18e219bf
> > > +
> > > +# 
> > > ----------------------------------------------------------------------------
> > > +# Prepare
> > > +# 
> > > ----------------------------------------------------------------------------
> > > +
> > > +PYTHON3_PYSMI_CONF_TOOL      := python3
> > > +
> > > +# 
> > > ----------------------------------------------------------------------------
> > > +# Target-Install
> > > +# 
> > > ----------------------------------------------------------------------------
> > > +
> > > +$(STATEDIR)/python3-pysmi.targetinstall:
> > > +     @$(call targetinfo)
> > > +
> > > +     @$(call install_init, python3-pysmi)
> > > +     @$(call install_fixup, python3-pysmi,PRIORITY,optional)
> > > +     @$(call install_fixup, python3-pysmi,SECTION,base)
> > > +     @$(call install_fixup, python3-pysmi,AUTHOR,"Lars Pedersen 
> > > <[email protected]>")
> > > +     @$(call install_fixup, python3-pysmi,DESCRIPTION,missing)
> > > +
> > > +     @$(call install_glob, python3-pysmi, 0, 0, -, \
> > > +             $(PYTHON3_SITEPACKAGES),, *.py)
> >
> > Why install the *.py files and not *.pyc?
> 
> The rule should install everything except *.py. For me it looks like
> the *.py is in the no glob section as it should.

Sorry, I replied to the wrong patch...

Michael

-- 
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
[email protected]
To unsubscribe, send a mail with subject "unsubscribe" to 
[email protected]

Reply via email to