Skip to contentSkip to conversation

python-crossbar: drop Python 2 support

PATCH New Ricardo Martincoski 2 participants 2 messages Oct 16, 2018 – Oct 17, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python-crossbar: drop Python 2 support

Upstream is now Python 3 only.

Quoting the maintainer [1]: "the last version of crossbar with python 2
support: pip install crossbar==18.4.1".

[1] https://github.com/crossbario/crossbar/issues/1332

Cc Asaf Kahlon <[email protected]>
Cc Mauro Condarelli <[email protected]>
Cc Yegor Yefremov <[email protected]>

---
NOTES:

This is only for master branch. Other branches are not affected.

There are newer releases available via pip2 but they are broken in runtime. Some people complained about this on [1].

Based on "f4972e2e8c python-django: bump to version 2.1.2" I assume we don't need any legacy handling for this case.

I followed the convention from the manual:
4. Any dependencies on the toolchain in depends on form
5. Any dependencies on other packages in depends on form

---
 package/python-crossbar/Config.in | 2 ++
 1 file changed, 2 insertions(+)
package/python-crossbar/Config.in +2 -0
index 2f9de6e0b5..526d9871be 100644
@@ -1,6 +1,7 @@
 config BR2_PACKAGE_PYTHON_CROSSBAR
 	bool "python-crossbar"
 	depends on BR2_INSTALL_LIBSTDCPP # python-cryptography
+	depends on BR2_PACKAGE_PYTHON3
 	# All the following dependencies are runtime dependencies
 	select BR2_PACKAGE_PYTHON_ATTRS
 	select BR2_PACKAGE_PYTHON_AUTOBAHN
@@ -48,3 +49,4 @@ config BR2_PACKAGE_PYTHON_CROSSBAR
 
 comment "python-crossbar needs a toolchain w/ C++"
 	depends on !BR2_INSTALL_LIBSTDCPP
+	depends on BR2_PACKAGE_PYTHON3
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 python-crossbar: drop Python 2 support

Hello,

Quoted 5 lines · Ricardo Martincoski

Upstream is now Python 3 only.

Quoting the maintainer [1]: "the last version of crossbar with python 2
support: pip install crossbar==18.4.1".

Quoted 8 lines

[1] https://github.com/crossbario/crossbar/issues/1332

Cc Asaf Kahlon <[email protected]>
Cc Mauro Condarelli <[email protected]>
Cc Yegor Yefremov <[email protected]>

---
NOTES:

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com