package/python-tinyrpc: not available for python 2.x
authorPeter Korsgaard <peter@korsgaard.com>
Tue, 29 Sep 2020 20:45:57 +0000 (22:45 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Wed, 30 Sep 2020 19:09:24 +0000 (21:09 +0200)
Fixes:
http://autobuild.buildroot.net/results/eef0969bac04800cec51fa27f1e1ecd3a4c8211e/

tinyrpc 1.x is not compatible with python 2.x, leading to errors during the
pycompile step:

error:   File "/usr/lib/python2.7/site-packages/tinyrpc/client.py", line 37
    self, protocol: RPCProtocol, transport: ClientTransport
                  ^
SyntaxError: invalid syntax

As also documented in the README:
The current version will support Python3 only.  Have a look at the 0.9.x
version if you need Python2 support

https://github.com/mbr/tinyrpc/blob/1.0.4/README.rst

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Reviewed-by: Asaf Kahlon <asafka7@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/python-tinyrpc/Config.in

index 3c643c754a90b72822b67abbce27f0cefa486f06..3194b7825a821f5e7db73ebb5390c179e2abcf6c 100644 (file)
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_PYTHON_TINYRPC
        bool "python-tinyrpc"
+       depends on BR2_PACKAGE_PYTHON3
        select BR2_PACKAGE_PYTHON_SIX # runtime
        help
          A small, modular, transport and protocol neutral RPC