summaryrefslogtreecommitdiff
path: root/lang/python/python-docker
diff options
context:
space:
mode:
authorAlexandru Ardelean <ardeleanalex@gmail.com>2021-09-25 11:18:51 +0300
committerRosen Penev <rosenp@gmail.com>2021-09-27 11:01:07 -0700
commita1d32499ca164fb7deee268d5b983dffb636c21b (patch)
tree3d956e3a922fc091bd5f71487b0265243eaa2fb5 /lang/python/python-docker
parent12c5ed9a4c971a5cf314831a1a01d851be976120 (diff)
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>
Diffstat (limited to 'lang/python/python-docker')
0 files changed, 0 insertions, 0 deletions