summaryrefslogtreecommitdiff
path: root/lang/python/python3/Config-python3-light.in
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/python3/Config-python3-light.in
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/python3/Config-python3-light.in')
-rw-r--r--lang/python/python3/Config-python3-light.in4
1 files changed, 0 insertions, 4 deletions
diff --git a/lang/python/python3/Config-python3-light.in b/lang/python/python3/Config-python3-light.in
index db0a30108..968c3472c 100644
--- a/lang/python/python3/Config-python3-light.in
+++ b/lang/python/python3/Config-python3-light.in
@@ -1,9 +1,5 @@
menu "Configuration"
-config PYTHON3_BLUETOOTH_SUPPORT
- bool "Enable Bluetooth support"
- default n
-
config PYTHON3_HOST_PIP_CACHE_WORLD_READABLE
bool "Ensure host pip cache is world-readable"
default n