[Buildroot] [PATCH v2] package/python-bluezero: new package
Grzegorz Blach
grzegorz at blach.pl
Wed Sep 18 09:49:16 UTC 2019
Hello Thomas,
> On 17 Sep 2019, at 23:27, Thomas Petazzoni <thomas.petazzoni at bootlin.com> wrote:
>
> Hello Grzegorz,
>
> On Tue, 3 Sep 2019 21:24:22 +0000
> Grzegorz Blach <grzegorz at blach.pl> wrote:
>
>> Python library for Bluetooth Low Energy (BLE) on Linux.
>>
>> Signed-off-by: Grzegorz Blach <grzegorz at blach.pl>
>> ---
>> Changes v1 -> v2:
>> - Removed BR2_PACKAGE_PYTHON_AIOBLESCAN from runtime dependencies
>> since this is an optional dependency (used only by observer.py
>> module).
>
> My understanding is that this Python module talks over D-Bus to BlueZ,
> and therefore it cannot work without BlueZ. Shouldn't this package then
> have some dependency on BlueZ, such as a "depends on”
Python-bluezero has 4 main modules: central.py, peripheral.py, observer.py and broadcaster.py.
central.py, peripheral.py and broadcaster.py use BlueZ through D-BUS,
but observer.py uses python-aioblescan instead. And python-aioblescan uses AF_BLUETOOTH sockets.
So depending on what part of python-bluezero you use, it depends on D-Bus/BlueZ or python-aioblescan.
Personally I use python-bluezero in two projects. In the first project I use only peripheral.py (D-Bus/BlueZ).
And in the second project I’m using observer.py (python-aioblescan), which means I don’t need D-Bus/BlueZ in my second project.
How to set dependencies in this situation?
> Thanks!
>
> Thomas
> --
> Thomas Petazzoni, CTO, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
More information about the buildroot
mailing list