* [ptxdist] [PATCH V2 0/2] Add python3-uvloop @ 2022-05-03 12:33 David Jander 2022-05-03 12:33 ` [ptxdist] [PATCH V2 1/2] libuv version bump 1.34.0 -> 1.42.0 David Jander 2022-05-03 12:33 ` [ptxdist] [PATCH V2 2/2] python3-uvloop: new package David Jander 0 siblings, 2 replies; 8+ messages in thread From: David Jander @ 2022-05-03 12:33 UTC (permalink / raw) To: ptxdist; +Cc: Michael Olbrich, Marc Kleine-Budde, David Jander Bump libuv to version 1.42.0 as required by python3-uvloop 0.16. Add python3-uvloop 0.16, which is a much faster replacement for the python asyncio event loop. The performance improvements on embedded systems are well worthwhile the effort. Changes since V1: - Removed reference to CREDITS file in comment David Jander (2): libuv version bump 1.34.0 -> 1.42.0 python3-uvloop: new package .../autogen.sh | 0 rules/libuv.make | 4 +- rules/python3-uvloop.in | 10 ++++ rules/python3-uvloop.make | 57 +++++++++++++++++++ 4 files changed, 69 insertions(+), 2 deletions(-) rename patches/{libuv-v1.34.0 => libuv-v1.42.0}/autogen.sh (100%) create mode 100644 rules/python3-uvloop.in create mode 100644 rules/python3-uvloop.make -- 2.32.0 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [ptxdist] [PATCH V2 1/2] libuv version bump 1.34.0 -> 1.42.0 2022-05-03 12:33 [ptxdist] [PATCH V2 0/2] Add python3-uvloop David Jander @ 2022-05-03 12:33 ` David Jander 2022-05-09 6:29 ` [ptxdist] [APPLIED] " Michael Olbrich 2022-05-03 12:33 ` [ptxdist] [PATCH V2 2/2] python3-uvloop: new package David Jander 1 sibling, 1 reply; 8+ messages in thread From: David Jander @ 2022-05-03 12:33 UTC (permalink / raw) To: ptxdist; +Cc: Michael Olbrich, Marc Kleine-Budde, David Jander Needed for python3-uvloop Signed-off-by: David Jander <david@protonic.nl> --- patches/{libuv-v1.34.0 => libuv-v1.42.0}/autogen.sh | 0 rules/libuv.make | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename patches/{libuv-v1.34.0 => libuv-v1.42.0}/autogen.sh (100%) diff --git a/patches/libuv-v1.34.0/autogen.sh b/patches/libuv-v1.42.0/autogen.sh similarity index 100% rename from patches/libuv-v1.34.0/autogen.sh rename to patches/libuv-v1.42.0/autogen.sh diff --git a/rules/libuv.make b/rules/libuv.make index 96f22a042..8a9cbacb6 100644 --- a/rules/libuv.make +++ b/rules/libuv.make @@ -14,8 +14,8 @@ PACKAGES-$(PTXCONF_LIBUV) += libuv # # Paths and names # -LIBUV_VERSION := 1.34.0 -LIBUV_MD5 := 811ebe06c326e788ac7adf062328f3f1 +LIBUV_VERSION := 1.42.0 +LIBUV_MD5 := 484dec4a06e183c20be815019ce9ddd0 LIBUV := libuv-v$(LIBUV_VERSION) LIBUV_SUFFIX := tar.gz LIBUV_URL := https://dist.libuv.org/dist/v$(LIBUV_VERSION)/$(LIBUV).$(LIBUV_SUFFIX) -- 2.32.0 ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [ptxdist] [APPLIED] libuv version bump 1.34.0 -> 1.42.0 2022-05-03 12:33 ` [ptxdist] [PATCH V2 1/2] libuv version bump 1.34.0 -> 1.42.0 David Jander @ 2022-05-09 6:29 ` Michael Olbrich 0 siblings, 0 replies; 8+ messages in thread From: Michael Olbrich @ 2022-05-09 6:29 UTC (permalink / raw) To: ptxdist; +Cc: David Jander Thanks, applied as 31808a531cf1a1ff710073172fa062c21e106c19. Michael [sent from post-receive hook] On Mon, 09 May 2022 08:29:18 +0200, David Jander <david@protonic.nl> wrote: > Needed for python3-uvloop > > Signed-off-by: David Jander <david@protonic.nl> > Message-Id: <20220503123346.1439367-2-david@protonic.nl> > Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> > > diff --git a/patches/libuv-v1.34.0/autogen.sh b/patches/libuv-v1.42.0/autogen.sh > similarity index 100% > rename from patches/libuv-v1.34.0/autogen.sh > rename to patches/libuv-v1.42.0/autogen.sh > diff --git a/rules/libuv.make b/rules/libuv.make > index 96f22a04298a..8a9cbacb6a1f 100644 > --- a/rules/libuv.make > +++ b/rules/libuv.make > @@ -14,8 +14,8 @@ PACKAGES-$(PTXCONF_LIBUV) += libuv > # > # Paths and names > # > -LIBUV_VERSION := 1.34.0 > -LIBUV_MD5 := 811ebe06c326e788ac7adf062328f3f1 > +LIBUV_VERSION := 1.42.0 > +LIBUV_MD5 := 484dec4a06e183c20be815019ce9ddd0 > LIBUV := libuv-v$(LIBUV_VERSION) > LIBUV_SUFFIX := tar.gz > LIBUV_URL := https://dist.libuv.org/dist/v$(LIBUV_VERSION)/$(LIBUV).$(LIBUV_SUFFIX) ^ permalink raw reply [flat|nested] 8+ messages in thread
* [ptxdist] [PATCH V2 2/2] python3-uvloop: new package 2022-05-03 12:33 [ptxdist] [PATCH V2 0/2] Add python3-uvloop David Jander 2022-05-03 12:33 ` [ptxdist] [PATCH V2 1/2] libuv version bump 1.34.0 -> 1.42.0 David Jander @ 2022-05-03 12:33 ` David Jander 2022-05-06 7:29 ` Michael Olbrich 1 sibling, 1 reply; 8+ messages in thread From: David Jander @ 2022-05-03 12:33 UTC (permalink / raw) To: ptxdist; +Cc: Michael Olbrich, Marc Kleine-Budde, David Jander This is an ultra-fast replacement for the python3 asyncio event loop. Signed-off-by: David Jander <david@protonic.nl> --- 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 <david@protonic.nl> +# +# 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 + +# ---------------------------------------------------------------------------- +# 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 <david@protonic.nl>") + @$(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) + + @$(call install_finish, python3-uvloop) + + @$(call touch) + +# vim: syntax=make -- 2.32.0 ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [ptxdist] [PATCH V2 2/2] python3-uvloop: new package 2022-05-03 12:33 ` [ptxdist] [PATCH V2 2/2] python3-uvloop: new package David Jander @ 2022-05-06 7:29 ` Michael Olbrich 2022-05-06 11:31 ` Michael Olbrich 0 siblings, 1 reply; 8+ messages in thread From: Michael Olbrich @ 2022-05-06 7:29 UTC (permalink / raw) To: David Jander; +Cc: Marc Kleine-Budde, ptxdist 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 <david@protonic.nl> > --- > 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 <david@protonic.nl> > +# > +# 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 <david@protonic.nl>") > + @$(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) > + > + @$(call install_finish, python3-uvloop) > + > + @$(call touch) > + > +# vim: syntax=make > -- > 2.32.0 > > > -- 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 | ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [ptxdist] [PATCH V2 2/2] python3-uvloop: new package 2022-05-06 7:29 ` Michael Olbrich @ 2022-05-06 11:31 ` Michael Olbrich 2022-05-06 11:34 ` Michael Olbrich 0 siblings, 1 reply; 8+ messages in thread From: Michael Olbrich @ 2022-05-06 11:31 UTC (permalink / raw) To: David Jander, ptxdist, Marc Kleine-Budde 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 <david@protonic.nl> > > --- > > 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 <david@protonic.nl> > > +# > > +# 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 <david@protonic.nl>") > > + @$(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) > > + > > + @$(call install_finish, python3-uvloop) > > + > > + @$(call touch) > > + > > +# vim: syntax=make > > -- > > 2.32.0 > > > > > > > > -- > 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 | > > -- 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 | ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [ptxdist] [PATCH V2 2/2] python3-uvloop: new package 2022-05-06 11:31 ` Michael Olbrich @ 2022-05-06 11:34 ` Michael Olbrich 2022-05-06 11:51 ` David Jander 0 siblings, 1 reply; 8+ messages in thread From: Michael Olbrich @ 2022-05-06 11:34 UTC (permalink / raw) To: David Jander, ptxdist, Marc Kleine-Budde 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 <david@protonic.nl> > > > --- > > > 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 <david@protonic.nl> > > > +# > > > +# 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 <david@protonic.nl>") > > > + @$(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. Michael > > > + > > > + @$(call install_finish, python3-uvloop) > > > + > > > + @$(call touch) > > > + > > > +# vim: syntax=make > > > -- > > > 2.32.0 > > > > > > > > > > > > > -- > > 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 | > > > > > > -- > 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 | > > -- 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 | ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [ptxdist] [PATCH V2 2/2] python3-uvloop: new package 2022-05-06 11:34 ` Michael Olbrich @ 2022-05-06 11:51 ` David Jander 0 siblings, 0 replies; 8+ messages in thread From: David Jander @ 2022-05-06 11:51 UTC (permalink / raw) To: Michael Olbrich; +Cc: Marc Kleine-Budde, ptxdist On Fri, 6 May 2022 13:34:03 +0200 Michael Olbrich <m.olbrich@pengutronix.de> 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 <david@protonic.nl> > > > > --- > > > > 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 <david@protonic.nl> > > > > +# > > > > +# 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 <david@protonic.nl>") > > > > + @$(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. ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2022-05-09 6:32 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2022-05-03 12:33 [ptxdist] [PATCH V2 0/2] Add python3-uvloop David Jander 2022-05-03 12:33 ` [ptxdist] [PATCH V2 1/2] libuv version bump 1.34.0 -> 1.42.0 David Jander 2022-05-09 6:29 ` [ptxdist] [APPLIED] " Michael Olbrich 2022-05-03 12:33 ` [ptxdist] [PATCH V2 2/2] python3-uvloop: new package David Jander 2022-05-06 7:29 ` Michael Olbrich 2022-05-06 11:31 ` Michael Olbrich 2022-05-06 11:34 ` Michael Olbrich 2022-05-06 11:51 ` David Jander
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox