From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 06 May 2022 13:51:40 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nmwUm-003h3j-Ag for lore@lore.pengutronix.de; Fri, 06 May 2022 13:51:40 +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 1nmwUl-0004Cj-Gc; Fri, 06 May 2022 13:51:39 +0200 Received: from smtp16.bhosted.nl ([2a02:9e0:8000::27]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nmwUN-0004BV-Sd for ptxdist@pengutronix.de; Fri, 06 May 2022 13:51:16 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonic.nl; s=202111; h=content-transfer-encoding:content-type:mime-version:references:in-reply-to: message-id:subject:cc:to:from:date:from; bh=uJomav2BE07whs1eYRXrZadIi63qouDUjk7e0uHLe9k=; b=r+ba95nSQecpNsot9c6B9NAsYIVG5PetI4+Ms5CWMhEIwFtS60qz6NQmA4Aew0oAVZxVhzbU3sqxf LYeWoTBO5WWsMi51Qhuh5ORucwsOwPu1uLL/CJ6MTkN2vJxOeBaHv4piQ4sLzXR9i6H/qTobX5ElNN tKPUeofCF3REwJpL2O7i00tTlUQmwvpHgCHjmtpD4NENbsgCG5uRlqompX1X6ke1jcmVQJ4kkSC5Id ZQHoPhuP5tUfDDJEaUV0XU7NYVbGI70ANYb6uy0pRelu4OpXZdftbLlk1P3tbyNU83BZaxyliDPW8K 4pQa+Z+IX92NMlKav5HIBcxDZdxKBrA== X-MSG-ID: d46cb7d0-cd32-11ec-9896-0050569d2c73 Date: Fri, 6 May 2022 13:51:13 +0200 From: David Jander To: Michael Olbrich Message-ID: <20220506135113.3345cadb@erd992> In-Reply-To: References: <20220503123346.1439367-1-david@protonic.nl> <20220503123346.1439367-3-david@protonic.nl> Organization: Protonic Holland X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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.1 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Subject: Re: [ptxdist] [PATCH V2 2/2] python3-uvloop: 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 Cc: Marc Kleine-Budde , ptxdist@pengutronix.de 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 On Fri, 6 May 2022 13:34:03 +0200 Michael Olbrich wrote: > On Fri, May 06, 2022 at 01:31:34PM +0200, Michael Olbrich wrote: > > On Fri, May 06, 2022 at 09:29:07AM +0200, Michael Olbrich wrote: > > > On Tue, May 03, 2022 at 02:33:46PM +0200, David Jander wrote: > > > > This is an ultra-fast replacement for the python3 asyncio event loop. > > > > > > > > Signed-off-by: David Jander > > > > --- > > > > rules/python3-uvloop.in | 10 +++++++ > > > > rules/python3-uvloop.make | 57 +++++++++++++++++++++++++++++++++++++++ > > > > 2 files changed, 67 insertions(+) > > > > create mode 100644 rules/python3-uvloop.in > > > > create mode 100644 rules/python3-uvloop.make > > > > > > > > diff --git a/rules/python3-uvloop.in b/rules/python3-uvloop.in > > > > new file mode 100644 > > > > index 000000000..6f937a31b > > > > --- /dev/null > > > > +++ b/rules/python3-uvloop.in > > > > @@ -0,0 +1,10 @@ > > > > +## SECTION=python3 > > > > + > > > > +config PYTHON3_UVLOOP > > > > + tristate > > > > + select PYTHON3 > > > > + select HOST_CYTHON3 > > > > + select LIBUV > > > > + prompt "python3-uvloop" > > > > + help > > > > + Ultra fast asyncio event loop > > > > diff --git a/rules/python3-uvloop.make b/rules/python3-uvloop.make > > > > new file mode 100644 > > > > index 000000000..caafa75e1 > > > > --- /dev/null > > > > +++ b/rules/python3-uvloop.make > > > > @@ -0,0 +1,57 @@ > > > > +# -*-makefile-*- > > > > +# > > > > +# Copyright (C) 2019 by David Jander > > > > +# > > > > +# For further information about the PTXdist project and license conditions > > > > +# see the README file. > > > > +# > > > > + > > > > +# > > > > +# We provide this package > > > > +# > > > > +PACKAGES-$(PTXCONF_PYTHON3_UVLOOP) += python3-uvloop > > > > + > > > > +# > > > > +# Paths and names > > > > +# > > > > +PYTHON3_UVLOOP_VERSION := v0.16.0 > > > > +PYTHON3_UVLOOP_MD5 := d70d003f73f034e4fecdda2078fed6f3 > > > > +PYTHON3_UVLOOP := python3-uvloop-$(PYTHON3_UVLOOP_VERSION) > > > > +PYTHON3_UVLOOP_SUFFIX := tar.gz > > > > +PYTHON3_UVLOOP_URL := https://github.com/MagicStack/uvloop/archive/$(PYTHON3_UVLOOP_VERSION).$(PYTHON3_UVLOOP_SUFFIX) > > > > +PYTHON3_UVLOOP_SOURCE := $(SRCDIR)/$(PYTHON3_UVLOOP).$(PYTHON3_UVLOOP_SUFFIX) > > > > +PYTHON3_UVLOOP_DIR := $(BUILDDIR)/$(PYTHON3_UVLOOP) > > > > +PYTHON3_UVLOOP_LICENSE := Apache-2.0 > > > > > > Apache-2.0 OR MIT > > > > > > And please add the license files. > > > > > > Michael > > > > > > > > > > + > > > > +# ---------------------------------------------------------------------------- > > > > +# Prepare > > > > +# ---------------------------------------------------------------------------- > > > > + > > > > +PYTHON3_UVLOOP_CONF_TOOL := python3 > > > > +PYTHON3_UVLOOP_MAKE_OPT := build build_py build_ext --use-system-libuv > > > > +PYTHON3_UVLOOP_INSTALL_OPT := build_ext --use-system-libuv install --prefix=/usr > > > > + > > > > +# ---------------------------------------------------------------------------- > > > > +# Target-Install > > > > +# ---------------------------------------------------------------------------- > > > > + > > > > +$(STATEDIR)/python3-uvloop.targetinstall: > > > > + @$(call targetinfo) > > > > + > > > > + @$(call install_init, python3-uvloop) > > > > + @$(call install_fixup, python3-uvloop, PRIORITY, optional) > > > > + @$(call install_fixup, python3-uvloop, SECTION, base) > > > > + @$(call install_fixup, python3-uvloop, AUTHOR, "David Jander ") > > > > + @$(call install_fixup, python3-uvloop, DESCRIPTION, missing) > > > > + > > > > + @$(call install_glob, python3-uvloop, 0, 0, -, \ > > > > + /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages/uvloop, *.pyc) > > > > + > > > > + @$(call install_glob, python3-uvloop, 0, 0, -, \ > > > > + /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages/uvloop, *.so) > > > > You can add multiple glob patterns, so one install_glob like this should > > work: > > > > @$(call install_glob, python3-uvloop, 0, 0, -, \ > > /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages/uvloop, *.pyc *.so) > > Ah, you already sent v3. Don't worry about this, I'll fix it while > applying. Sorry, I think I was too quick. Thanks for applying anyway. >[...] Best regards, -- David Jander Protonic Holland.