Skip to contentSkip to conversation

package/python-libusb1: needs python3

PATCH Applied Fabrice Fontaine 2 participants 2 messages Oct 16, 2021 – Oct 25, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/python-libusb1: needs python3

python2 support has been dropped since version 1.10.0 and
https://github.com/vpelletier/python-libusb1/commit/69fd5a3ed2f674d412131dfaf24bbc2534f3cf13
resulting in the following build failure since bump to version 2.0.1 in commit 6703b94f24320316ddfc2a3ec3e40fe3876dc8c8:

Traceback (most recent call last):
File "setup.py", line 22, in <module>
from html.parser import HTMLParser
ImportError: No module named html.parser

Fixes:
- http://autobuild.buildroot.org/results/fe011ccb7eac1be9762919f9feda35114e752d8a

---
 package/python-libusb1/Config.in | 2 ++
 1 file changed, 2 insertions(+)
package/python-libusb1/Config.in +2 -0
index e464a0394d..fbad70c375 100644
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_PYTHON_LIBUSB1
 	bool "python-libusb1"
+	depends on BR2_PACKAGE_PYTHON3
 	depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
 	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # libusb
 	select BR2_PACKAGE_LIBUSB
@@ -9,5 +10,6 @@ config BR2_PACKAGE_PYTHON_LIBUSB1
 	  http://github.com/vpelletier/python-libusb1
 
 comment "python-libusb1 needs a toolchain w/ threads, gcc >= 4.9"
+	depends on BR2_PACKAGE_PYTHON3
 	depends on !BR2_TOOLCHAIN_HAS_THREADS || \
 		!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
Signature · 6 lines
2.33.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 10 lines · Fabrice Fontaine

python2 support has been dropped since version 1.10.0 and
https://github.com/vpelletier/python-libusb1/commit/69fd5a3ed2f674d412131dfaf24bbc2534f3cf13
resulting in the following build failure since bump to version 2.0.1 in commit 6703b94f24320316ddfc2a3ec3e40fe3876dc8c8:

Traceback (most recent call last):
File "setup.py", line 22, in <module>
from html.parser import HTMLParser
ImportError: No module named html.parser

Quoted 4 lines

Fixes:
- http://autobuild.buildroot.org/results/fe011ccb7eac1be9762919f9feda35114e752d8a

Applied to master, thanks.

Regards,
Arnout

Quoted 17 lines
---
  package/python-libusb1/Config.in | 2 ++
  1 file changed, 2 insertions(+)
package/python-libusb1/Config.in +1 -0
index e464a0394d..fbad70c375 100644
@@ -1,5 +1,6 @@
  config BR2_PACKAGE_PYTHON_LIBUSB1
  	bool "python-libusb1"
+	depends on BR2_PACKAGE_PYTHON3
  	depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
  	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # libusb
  	select BR2_PACKAGE_LIBUSB

package/python-libusb1/Config.in config BR2_PACKAGE_PYTHON_LIBUSB1 · line 15

Quoted 6 lines
package/python-libusb1/Config.in +1 -0
@@ -9,5 +10,6 @@ config BR2_PACKAGE_PYTHON_LIBUSB1
  	  http://github.com/vpelletier/python-libusb1
 
  comment "python-libusb1 needs a toolchain w/ threads, gcc >= 4.9"
+	depends on BR2_PACKAGE_PYTHON3
  	depends on !BR2_TOOLCHAIN_HAS_THREADS || \
  		!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot