mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: Lars Pedersen <lapeddk@gmail.com>
Cc: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH v2 2/4] python3-pysmi: new package
Date: Fri, 16 Jul 2021 12:23:21 +0200	[thread overview]
Message-ID: <20210716102321.GD375046@pengutronix.de> (raw)
In-Reply-To: <20210712110910.562587-2-lapeddk@gmail.com>

On Mon, Jul 12, 2021 at 01:09:08PM +0200, Lars Pedersen wrote:
> Signed-off-by: Lars Pedersen <lapeddk@gmail.com>
> ---
> 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 <lapeddk@gmail.com>
> +#
> +# 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 <lapeddk@gmail.com>")
> +	@$(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?

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


  reply	other threads:[~2021-07-16 10:24 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-12 11:09 [ptxdist] [PATCH v2 1/4] python3-pyasn1: " Lars Pedersen
2021-07-12 11:09 ` [ptxdist] [PATCH v2 2/4] python3-pysmi: " Lars Pedersen
2021-07-16 10:23   ` Michael Olbrich [this message]
2021-07-16 12:24     ` Lars Pedersen
2021-07-16 12:40       ` Michael Olbrich
2021-07-22 12:12   ` [ptxdist] [APPLIED] " Michael Olbrich
2021-07-12 11:09 ` [ptxdist] [PATCH v2 3/4] python3-pysnmp: " Lars Pedersen
2021-07-16 12:41   ` Michael Olbrich
2021-07-16 12:53     ` Lars Pedersen
2021-07-16 13:02       ` Michael Olbrich
2021-07-18 19:03         ` Lars Pedersen
2021-07-19  6:48           ` Michael Olbrich
2021-07-19  7:47             ` [ptxdist] [PATCH v3] " Lars Pedersen
2021-07-22 12:12               ` [ptxdist] [APPLIED] " Michael Olbrich
2021-07-12 11:09 ` [ptxdist] [PATCH v2 4/4] python3-snmpclitools: " Lars Pedersen
2021-07-22 12:12   ` [ptxdist] [APPLIED] " Michael Olbrich
2021-07-22 12:12 ` [ptxdist] [APPLIED] python3-pyasn1: " Michael Olbrich

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=20210716102321.GD375046@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=lapeddk@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