From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 16 Jul 2021 14:25:06 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1m4Mtu-0003lR-Jp for lore@lore.pengutronix.de; Fri, 16 Jul 2021 14:25:06 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1m4Mtu-0008Jt-5r; Fri, 16 Jul 2021 14:25:06 +0200 Received: from mail-ot1-x334.google.com ([2607:f8b0:4864:20::334]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1m4Mth-0008JZ-VG for ptxdist@pengutronix.de; Fri, 16 Jul 2021 14:24:54 +0200 Received: by mail-ot1-x334.google.com with SMTP id t4-20020a05683014c4b02904cd671b911bso1589846otq.1 for ; Fri, 16 Jul 2021 05:24:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=D264qXwF36mtOEbPYZlYvXCpqt+9qqxQGbnIdnqxJZk=; b=KPYmanNuvx+ZyGD8DirJE5XUiRQ62wWgUuQBpQNl1dINT/QCoo9S5O/z33Oc3IGLS1 qstnyLUfTHSlh7+eDEARO/F9+UhHcUO5oByfgWd3UK2SZVJC6+CJ/nlVk0SLlGhObwb/ ETiRDUdB8xZqG+kMFZJOBN0bpROLieH24JQP72csSLQXst0Z5ROc+fxRD9X4nsAzF1Ik zRVLnEp39AjxTyvOCjJBUEu/8i5o3P0nGYrZE6ZS/lR65jPUHUk5oOFSwaueFTZPg2YC KDYTZxBVHRWjYExAkH2gP57RzS+440+F8rrMw6br6nhNOJ0KtgogZcAjQ7QiKHkoUbCp TKmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=D264qXwF36mtOEbPYZlYvXCpqt+9qqxQGbnIdnqxJZk=; b=EsJ48m0gCYeiHuhOByS4wjQZS6K+IhxhbyGBT8meeTzfGs1T3knNRCi/c9z/gZ0MGR zZ0UAq9B/uELPgG4NUvLoE3H8ak3Nws3cASABweX5GuZLY/3eS/GHu8CH3YC8IymlKbH m/qkUBt2O0qsjy5LmxkqhLrVavHF9au/UHDXgo58pl+drvJyTHL4Vu65mYIq8tP5swMp RHzG7Q/tTQ16/Ie2qvZJ9ZCnVYTwCBsqQ9TQiT+Av78dOD7elMNJPS4SBTzn6jT7NnNK FWRMCzNXc5yw+ALBhKwiVOXKupJHo73xmVJI29dHU5v5shgaefuA+vGOFGRgFvSyzmrZ UHdg== X-Gm-Message-State: AOAM5306avFEdhKGmdXpvfe4P9EO7iphZLnRJkWRGdewvP2m8cj/cx+Y he8KqYRc7Wz2G8Ieo70lWsJiB1OB/34MCTedtjMXI+CU X-Google-Smtp-Source: ABdhPJwMU9bEHKwMlnGN8XqG3Y5D8rgJHSe9lLmGje/5xOdbhfUJpupzJIw43+lenn5qma5RIKUyBqI1mZl1pXXfcR4= X-Received: by 2002:a9d:d53:: with SMTP id 77mr8269393oti.18.1626438292376; Fri, 16 Jul 2021 05:24:52 -0700 (PDT) MIME-Version: 1.0 References: <20210712110910.562587-1-lapeddk@gmail.com> <20210712110910.562587-2-lapeddk@gmail.com> <20210716102321.GD375046@pengutronix.de> In-Reply-To: <20210716102321.GD375046@pengutronix.de> From: Lars Pedersen Date: Fri, 16 Jul 2021 14:24:41 +0200 Message-ID: To: Lars Pedersen , ptxdist@pengutronix.de X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.3 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Subject: Re: [ptxdist] [PATCH v2 2/4] python3-pysmi: new package X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list 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="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Hi. On Fri, 16 Jul 2021 at 12:23, Michael Olbrich wrote: > > On Mon, Jul 12, 2021 at 01:09:08PM +0200, Lars Pedersen wrote: > > Signed-off-by: Lars Pedersen > > --- > > 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 > > +# > > +# 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 ") > > + @$(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. /Lars Pedersen. > > Michael > > > + > > + @$(call install_finish, python3-pysmi) > > + > > + @$(call touch) > > + > > +# vim: syntax=make > > -- > > 2.31.1 > > > > > > _______________________________________________ > > ptxdist mailing list > > ptxdist@pengutronix.de > > To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@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 To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de