package/python-wpaspy: add python-wpaspy
PATCH 1/1 package/python-wpaspy: add python-wpaspy
From: Jared Bents <[email protected]>
Update to add python-wpaspy. It is a package that includes python bindings for wpa_ctrl.
--- DEVELOPERS | 1 + package/Config.in | 1 + ...spy-update-setup.py-to-use-wpaspy.py.patch | 45 +++++++++++++++++++ package/python-wpaspy/Config.in | 6 +++ package/python-wpaspy/python-wpaspy.hash | 3 ++ package/python-wpaspy/python-wpaspy.mk | 17 +++++++ 6 files changed, 73 insertions(+) create mode 100644 package/python-wpaspy/0001-wpaspy-update-setup.py-to-use-wpaspy.py.patch create mode 100644 package/python-wpaspy/Config.in create mode 100644 package/python-wpaspy/python-wpaspy.hash create mode 100644 package/python-wpaspy/python-wpaspy.mk
DEVELOPERS +1 -0
@@ -1793,6 +1793,7 @@ F: package/python-pyrex/ F: package/python-pysftp/ F: package/python-tinyrpc/ F: package/python-txdbus/ +F: package/python-wpaspy/ F: package/qoriq-rcw/ F: package/raptor/ F: package/rng-tools/
package/Config.in +1 -0
@@ -1250,6 +1250,7 @@ menu "External python modules" source "package/python-websockets/Config.in" source "package/python-werkzeug/Config.in" source "package/python-whoosh/Config.in" + source "package/python-wpaspy/Config.in" source "package/python-wrapt/Config.in" source "package/python-ws4py/Config.in" source "package/python-wsaccel/Config.in"
package/python-wpaspy/0001-wpaspy-update-setup.py-to-use-wpaspy.py.patch new file +45 -0
45 lines not on this page · raw message
package/python-wpaspy/Config.in new file +6 -0
@@ -0,0 +1,6 @@ +config BR2_PACKAGE_PYTHON_WPASPY + bool "python-wpaspy" + depends on BR2_PACKAGE_WPA_SUPPLICANT #runtime dependency + help + Python bindings for wpa_ctrl + (wpa_supplicant/hostapd control interface)
package/python-wpaspy/python-wpaspy.hash new file +3 -0
@@ -0,0 +1,3 @@ +# Locally calculated +sha256 cb8ddbab4bf715aeeae67fbb06d85995fccb6f6180968247ea1aff250115ad44 hostap_2_9.tar.gz +sha256 9da5dd0776da266b180b915e460ff75c6ff729aca1196ab396529510f24f3761 README
package/python-wpaspy/python-wpaspy.mk new file +17 -0
@@ -0,0 +1,17 @@ +################################################################################ +# +# python-wpaspy +# +################################################################################ + +PYTHON_WPASPY_VERSION = 2_9 +PYTHON_WPASPY_SOURCE = hostap_$(PYTHON_WPASPY_VERSION).tar.gz +PYTHON_WPASPY_SITE = https://w1.fi/cgit/hostap/snapshot +PYTHON_WPASPY_SUBDIR = wpaspy +PYTHON_WPASPY_CFLAGS = $(TARGET_CFLAGS) +PYTHON_WPASPY_LICENSE = BSD-3-Clause +PYTHON_WPASPY_LICENSE_FILES = README +PYTHON_WPASPY_CPE_ID_VENDOR = w1.fi +PYTHON_WPASPY_SETUP_TYPE = distutils + +$(eval $(python-package))
Signature · 1 line
2.17.1
PATCH 1/1 package/python-wpaspy: add python-wpaspy
Hello Matt,
Quoted 8 lines · On Mon, 12 Apr 2021 10:13:41 -0500 Matt Weber…
From: Jared Bents <[email protected]>
Update to add python-wpaspy. It is a package that includes python bindings for
wpa_ctrl.Signed-off-by Jared Bents <[email protected]>Signed-off-by Kalpesh Panchal <[email protected]>Signed-off-by Matt Weber <[email protected]>
Thanks for the patch. Minor nit, commit title should be "package/python-wpaspy: new package". Of course, I have more comments/questions below.
Quoted 6 lines
package/python-wpaspy/0001-wpaspy-update-setup.py-to-use-wpaspy.py.patch new file +0
-0
package/python-wpaspy/0001-wpaspy-update-setup.py-to-use-wpaspy.py.patch line 8
Quoted 8 lines
package/python-wpaspy/0001-wpaspy-update-setup.py-to-use-wpaspy.py.patch new file +8
-0@@ -0,0 +1,45 @@ +From b25579dd576ef125741fc72bd39239cb7e60a1e5 Mon Sep 17 00:00:00 2001 +From: Jared Bents <[email protected]> +Date: Wed, 1 Apr 2020 10:58:49 -0500 +Subject: [PATCH] wpaspy: update setup.py to use wpaspy.py + +update setup.py to use wpaspy.py instead of wpaspy.c due to +information from Jouni Malinen in the linked mailing list +correspondence
This commit log is very unclear, I don't understand what it means. It proposes to use a pure-Python implementation, instead of a C-based Python extension? Why?
The commit log only says *what* it does, but it should say *why* it does that.
package/python-wpaspy/0001-wpaspy-update-setup.py-to-use-wpaspy.py.patch line 10
Quoted 1 line
package/python-wpaspy/0001-wpaspy-update-setup.py-to-use-wpaspy.py.patch new file +1
-0+http://lists.infradead.org/pipermail/hostap/2020-April/041575.html
This link doesn't exist. There were no posts in April 2020 on this mailing list it seems.
package/python-wpaspy/Config.in line 3
Quoted 9 lines
package/python-wpaspy/Config.in new file +3
-0@@ -0,0 +1,6 @@ +config BR2_PACKAGE_PYTHON_WPASPY + bool "python-wpaspy" + depends on BR2_PACKAGE_WPA_SUPPLICANT #runtime dependency
Nit:
depends on BR2_PACKAGE_WPA_SUPPLICANT # runtime
package/python-wpaspy/Config.in line 6
Quoted 3 lines
package/python-wpaspy/Config.in new file +3
-0+ help + Python bindings for wpa_ctrl + (wpa_supplicant/hostapd control interface)
An upstream homepage would be nice to have.
Quoted 6 lines
package/python-wpaspy/python-wpaspy.mk new file +0
-0
package/python-wpaspy/python-wpaspy.mk line 9
Quoted 9 lines
package/python-wpaspy/python-wpaspy.mk new file +9
-0@@ -0,0 +1,17 @@ +################################################################################ +# +# python-wpaspy +# +################################################################################ + +PYTHON_WPASPY_VERSION = 2_9 +PYTHON_WPASPY_SOURCE = hostap_$(PYTHON_WPASPY_VERSION).tar.gz +PYTHON_WPASPY_SITE = https://w1.fi/cgit/hostap/snapshot
I was a bit confused by why you are fetching from Git, instead of using the wpa_supplicant or hostapd tarball. But it seems like the wpaspy subdir is only available in the Git repository. Is this the reason for fetching this Git snapshot? If so, it would be good to state it somewhere, at least in the commit log.
Also, is there a need for this 2.9 version to be in sync between this and the wpa_supplicant package ?
package/python-wpaspy/python-wpaspy.mk line 11
Quoted 2 lines
package/python-wpaspy/python-wpaspy.mk new file +2
-0+PYTHON_WPASPY_SUBDIR = wpaspy +PYTHON_WPASPY_CFLAGS = $(TARGET_CFLAGS)
This line has no effect.
package/python-wpaspy/python-wpaspy.mk line 14
Quoted 3 lines
package/python-wpaspy/python-wpaspy.mk new file +3
-0+PYTHON_WPASPY_LICENSE = BSD-3-Clause +PYTHON_WPASPY_LICENSE_FILES = README +PYTHON_WPASPY_CPE_ID_VENDOR = w1.fi
OK, but does CPE knows about python-wpaspy as a product of w1.fi ?
package/python-wpaspy/python-wpaspy.mk line 17
Quoted 3 lines
package/python-wpaspy/python-wpaspy.mk new file +3
-0+PYTHON_WPASPY_SETUP_TYPE = distutils + +$(eval $(python-package))
Thanks a lot!
Thomas
Signature · 3 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com