From: David Jander <david@protonic.nl> To: ptxdist@pengutronix.de, Robin van der Gracht <robin@protonic.nl> Cc: Michael Olbrich <m.olbrich@pengutronix.de>, Marc Kleine-Budde <mkl@pengutronix.de>, David Jander <david@protonic.nl> Subject: [ptxdist] [PATCH V3 2/2] python3-uvloop: new package Date: Fri, 6 May 2022 13:12:56 +0200 [thread overview] Message-ID: <20220506111256.1533831-3-david@protonic.nl> (raw) In-Reply-To: <20220506111256.1533831-1-david@protonic.nl> 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 | 60 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 70 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..875efc203 --- /dev/null +++ b/rules/python3-uvloop.make @@ -0,0 +1,60 @@ +# -*-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 OR MIT +PYTHON3_UVLOOP_LICENSE_FILES := \ + file://LICENSE-APACHE;md5=57700cee6d14d45039259183f3c50ef1 \ + file://LICENSE-MIT;md5=3bd0b2e751776b370b2151ac508af939 + +# ---------------------------------------------------------------------------- +# 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
next prev parent reply other threads:[~2022-05-06 11:14 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-05-06 11:12 [ptxdist] [PATCH V3 0/2] Add python3-uvloop David Jander 2022-05-06 11:12 ` [ptxdist] [PATCH V3 1/2] libuv version bump 1.34.0 -> 1.42.0 David Jander 2022-05-06 11:12 ` David Jander [this message] 2022-05-09 6:29 ` [ptxdist] [APPLIED] python3-uvloop: new package 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=20220506111256.1533831-3-david@protonic.nl \ --to=david@protonic.nl \ --cc=m.olbrich@pengutronix.de \ --cc=mkl@pengutronix.de \ --cc=ptxdist@pengutronix.de \ --cc=robin@protonic.nl \ --subject='Re: [ptxdist] [PATCH V3 2/2] python3-uvloop: new package' \ /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
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox