[Buildroot] [PATCH 1/2] package/python-dbus-fast: new package

James Hilliard james.hilliard1 at gmail.com
Thu Nov 3 03:06:59 UTC 2022


On Wed, Nov 2, 2022 at 10:02 PM Marcin Niestrój
<m.niestroj at grinn-global.com> wrote:
>
> Hi James,
>
> Seems that we've been working on the same stuff today, as I've just sent
> the same update now.

Yeah, I was going through the outdated python packages that needed updates,
probably going to swap this in to replace python-dbus-next in one of my own
python projects.

>
> James Hilliard <james.hilliard1 at gmail.com> writes:
>
> > Signed-off-by: James Hilliard <james.hilliard1 at gmail.com>
> > ---
> >  DEVELOPERS                                     |  1 +
> >  package/Config.in                              |  1 +
> >  package/python-dbus-fast/Config.in             |  7 +++++++
> >  package/python-dbus-fast/python-dbus-fast.hash |  5 +++++
> >  package/python-dbus-fast/python-dbus-fast.mk   | 16 ++++++++++++++++
> >  5 files changed, 30 insertions(+)
> >  create mode 100644 package/python-dbus-fast/Config.in
> >  create mode 100644 package/python-dbus-fast/python-dbus-fast.hash
> >  create mode 100644 package/python-dbus-fast/python-dbus-fast.mk
> >
> > diff --git a/DEVELOPERS b/DEVELOPERS
> > index 7d27936992..4104a33f7f 100644
> > --- a/DEVELOPERS
> > +++ b/DEVELOPERS
> > @@ -1881,6 +1881,7 @@ F:      package/murata-cyw-fw/
> >  F:   package/netdata/
> >  F:   package/python-ansicolors/
> >  F:   package/python-bleak/
> > +F:   package/python-dbus-fast/
> >
>
> You've added new entry under my name. I have nothing against (as I have
> posted almost the same patch), but I guess this was by mistake, right?

Oh, whoops, was copy pasting and mixed that up with the Config.in addition
when doing a search and insert.

>
> >  F:   package/python-dbus-next/
> >  F:   package/python-iniconfig/
> >  F:   package/python-intelhex/
> > diff --git a/package/Config.in b/package/Config.in
> > index 238d7813f0..db9e94f357 100644
> > --- a/package/Config.in
> > +++ b/package/Config.in
> > @@ -1015,6 +1015,7 @@ menu "External python modules"
> >       source "package/python-daphne/Config.in"
> >       source "package/python-dataproperty/Config.in"
> >       source "package/python-dateutil/Config.in"
> > +     source "package/python-dbus-fast/Config.in"
> >       source "package/python-dbus-next/Config.in"
> >       source "package/python-decorator/Config.in"
> >       source "package/python-defusedxml/Config.in"
> > diff --git a/package/python-dbus-fast/Config.in b/package/python-dbus-fast/Config.in
> > new file mode 100644
> > index 0000000000..400e70bd7b
> > --- /dev/null
> > +++ b/package/python-dbus-fast/Config.in
> > @@ -0,0 +1,7 @@
> > +config BR2_PACKAGE_PYTHON_DBUS_FAST
> > +     bool "python-dbus-fast"
> > +     select BR2_PACKAGE_PYTHON_ASYNC_TIMEOUT # runtime
>
> There is runtime dependency on XML, which I discovered with runtime
> testing. So missing:
>
>   select BR2_PACKAGE_PYTHON3_PYEXPAT # runtime

Ah, yeah, looks like I missed that.

>
> > +     help
> > +       A faster version of dbus-next.
> > +
> > +       https://github.com/bluetooth-devices/dbus-fast
> > diff --git a/package/python-dbus-fast/python-dbus-fast.hash b/package/python-dbus-fast/python-dbus-fast.hash
> > new file mode 100644
> > index 0000000000..f0dceeb43d
> > --- /dev/null
> > +++ b/package/python-dbus-fast/python-dbus-fast.hash
> > @@ -0,0 +1,5 @@
> > +# md5, sha256 from https://pypi.org/pypi/dbus-fast/json
> > +md5  eebf2c558dd1af0f8f32b361e91f2fa3  dbus_fast-1.61.1.tar.gz
> > +sha256  bda4a7d559047b74f409eda278f68f610a418e86ad3efa0368fa2ed240daa6b6  dbus_fast-1.61.1.tar.gz
> > +# Locally computed sha256 checksums
> > +sha256  c37e9c75110e01d1f0c5360dc7d7776a30ac5f70d2440db214423e4b7a77a6af  LICENSE
> > diff --git a/package/python-dbus-fast/python-dbus-fast.mk b/package/python-dbus-fast/python-dbus-fast.mk
> > new file mode 100644
> > index 0000000000..de7049ba22
> > --- /dev/null
> > +++ b/package/python-dbus-fast/python-dbus-fast.mk
> > @@ -0,0 +1,16 @@
> > +################################################################################
> > +#
> > +# python-dbus-fast
> > +#
> > +################################################################################
> > +
> > +PYTHON_DBUS_FAST_VERSION = 1.61.1
> > +PYTHON_DBUS_FAST_SOURCE = dbus_fast-$(PYTHON_DBUS_FAST_VERSION).tar.gz
> > +PYTHON_DBUS_FAST_SITE = https://files.pythonhosted.org/packages/dd/f4/a280d46b119d59f6a3d84abf474452ae76651558b0963ab8c48ae13b5a44
> > +PYTHON_DBUS_FAST_SETUP_TYPE = setuptools
> > +PYTHON_DBUS_FAST_LICENSE = MIT
> > +PYTHON_DBUS_FAST_LICENSE_FILES = LICENSE
> > +PYTHON_DBUS_FAST_ENV = REQUIRE_CYTHON=1
> > +PYTHON_DBUS_FAST_DEPENDENCIES = host-python-cython

You should add these two lines to your patch to enable cython optimized modules.

> > +
> > +$(eval $(python-package))
>
>
> --
> Marcin Niestrój



More information about the buildroot mailing list