packages/lang/python/python3
Alexandru Ardelean a1d32499ca python3: enable bluetooth support by default
Bluetooth support requires bluez-libs present, but they are only required
for the build, and don't seem to be needed to be present on the target.

There isn't any linking required to libbluetooth. It's only the bluetooth.h
header that is required for building BT support into Python.

For testing, this snippet was used from `Lib/test/test_socket.py` (inside
cpython):
```
def _have_socket_bluetooth():
    """Check whether AF_BLUETOOTH sockets are supported on this host."""
    try:
        # RFCOMM is supported by all platforms with bluetooth support. Windows
        # does not support omitting the protocol.
        s = socket.socket(socket.AF_BLUETOOTH, socket.SOCK_STREAM, socket.BTPROTO_RFCOMM)
    except (AttributeError, OSError):
        return False
    else:
        s.close()
    return True
```

Fixes: https://github.com/openwrt/packages/issues/16544

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2021-09-27 11:01:07 -07:00
..
files python3-setuptools: add _distutils_hack 2021-08-18 12:20:07 +02:00
patches python3: bump version to 3.9.7 2021-09-09 14:31:46 -07:00
patches-pip python3: bump version to 3.9.5 2021-05-11 11:50:35 +03:00
patches-setuptools python3: bump to version 3.9.0 2020-10-19 11:01:12 +03:00
Config-python3-light.in python3: enable bluetooth support by default 2021-09-27 11:01:07 -07:00
Makefile python3: enable bluetooth support by default 2021-09-27 11:01:07 -07:00