Files
buildroot/package
Peter Korsgaard fd19ee84ca package/python-socketio: drop asgi/asyncio files for python 2.x to fix pycompile issue
socketio has conditional logic to load asgi/asyncio files when running under
Python 3.x:

if sys.version_info >= (3, 5):  # pragma: no cover
    from .asyncio_client import AsyncClient
    from .asyncio_server import AsyncServer
    from .asyncio_manager import AsyncManager
    from .asyncio_namespace import AsyncNamespace, AsyncClientNamespace
    from .asyncio_redis_manager import AsyncRedisManager
    from .asyncio_aiopika_manager import AsyncAioPikaManager
    from .asgi import ASGIApp
else:  # pragma: no cover
    AsyncClient = None
    AsyncServer = None
    AsyncManager = None
    AsyncNamespace = None
    AsyncRedisManager = None
    AsyncAioPikaManager = None

pycompile unfortunately errors out on these files when running under Python
2.x:

../scripts/pycompile.py ..
error:   File "/usr/lib/python2.7/site-packages/socketio/asyncio_server.py", line 84
    async def emit(self, event, data=None, to=None, room=None, skip_sid=None,
            ^
SyntaxError: invalid syntax

As a workaround, simply drop the unusable file from TARGET_DIR if building
for python 2.x.

Fixes:
http://autobuild.buildroot.net/results/455f3e09a590f7a6724ab8cd1b86bdf2bba8071a/

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit 6beb6dd5c6)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2020-10-10 22:58:52 +02:00
..
2020-07-18 15:56:46 +02:00
2020-08-15 16:14:28 +02:00
2020-10-03 07:57:08 +02:00
2020-07-12 15:58:40 +02:00
2020-07-18 14:18:33 +02:00
2020-10-10 22:23:59 +02:00
2020-07-11 23:52:42 +02:00
2020-07-27 17:19:46 +02:00
2020-08-13 21:59:36 +02:00
2020-06-22 21:36:15 +02:00
2020-09-01 09:18:37 +02:00
2020-06-29 22:13:00 +02:00
2020-07-09 21:59:10 +02:00
2020-09-29 16:10:49 +02:00
2020-06-20 08:32:25 +02:00
2020-07-19 18:49:56 +02:00
2020-06-18 22:39:22 +02:00
2020-08-05 15:00:32 +02:00
2020-08-12 16:44:27 +02:00
2020-06-25 22:44:51 +02:00
2020-10-02 22:14:10 +02:00
2020-08-19 22:47:44 +02:00
2020-07-14 10:01:05 +02:00
2020-06-20 16:24:06 +02:00
2020-07-18 23:25:26 +02:00
2020-07-13 19:10:20 +02:00
2020-07-12 11:13:26 +02:00
2020-06-23 23:19:03 +02:00
2020-07-12 13:00:39 +02:00
2020-08-28 22:56:49 +02:00
2020-08-29 16:03:15 +02:00
2020-07-27 10:13:06 +02:00
2020-07-26 21:47:22 +02:00
2020-08-16 11:27:28 +02:00
2020-10-10 22:09:30 +02:00
2020-06-20 08:34:09 +02:00
2020-07-18 22:31:26 +02:00
2020-07-26 21:47:07 +02:00
2020-06-29 22:04:21 +02:00
2020-09-25 17:38:40 +02:00
2020-07-12 23:07:44 +02:00
2020-07-12 12:44:43 +02:00
2020-08-28 22:56:49 +02:00
2020-08-23 15:03:18 +02:00
2020-07-13 23:24:19 +02:00
2020-07-12 23:20:13 +02:00
2020-08-31 22:18:09 +02:00
2020-08-28 22:56:49 +02:00
2020-07-05 15:27:44 +02:00
2020-07-16 22:20:07 +02:00
2020-08-03 16:37:23 +02:00
2020-07-11 23:47:27 +02:00
2020-08-16 11:27:28 +02:00
2020-07-12 22:30:44 +02:00
2020-07-14 23:44:31 +02:00
2020-09-29 20:35:02 +02:00
2020-07-27 15:12:53 +02:00
2020-07-16 09:16:36 +02:00
2020-07-12 23:38:46 +02:00
2020-06-18 22:14:18 +02:00
2020-07-16 09:14:34 +02:00
2020-09-29 17:20:20 +02:00
2020-07-07 22:58:39 +02:00
2020-07-16 09:10:40 +02:00
2020-07-27 13:31:00 +02:00