[Buildroot] [PATCH 04/08] package/python-daphne: new package

Thomas Petazzoni thomas.petazzoni at bootlin.com
Mon Sep 30 19:58:05 UTC 2019


Hello,

+Yegor in the loop.

On Mon, 30 Sep 2019 21:33:47 +0200
Thomas Petazzoni <thomas.petazzoni at bootlin.com> wrote:

> Speaking of that, I think asgiref and autobahn also need Python 3.x.
> Indeed, when I try to build python-daphne with Python 2.x, I get this:
> 
> Compiling usr/lib/python2.7/site-packages/asgiref/compatibility.py ...
>   File "usr/lib/python2.7/site-packages/asgiref/compatibility.py", line 32
>     async def new_application(scope, receive, send):
>             ^
> SyntaxError: invalid syntax
> 
> Compiling usr/lib/python2.7/site-packages/asgiref/server.py ...
>   File "usr/lib/python2.7/site-packages/asgiref/server.py", line 64
>     async def handle(self):
>             ^
> SyntaxError: invalid syntax
> 
> Compiling usr/lib/python2.7/site-packages/asgiref/sync.py ...
>   File "usr/lib/python2.7/site-packages/asgiref/sync.py", line 134
>     async def main_wrap(self, args, kwargs, call_result, source_thread):
>             ^
> SyntaxError: invalid syntax
> 
> Compiling usr/lib/python2.7/site-packages/asgiref/testing.py ...
>   File "usr/lib/python2.7/site-packages/asgiref/testing.py", line 24
>     async def wait(self, timeout=1):
>             ^
> SyntaxError: invalid syntax
> 
> Compiling usr/lib/python2.7/site-packages/asgiref/timeout.py ...
>   File "usr/lib/python2.7/site-packages/asgiref/timeout.py", line 34
>     timeout: Optional[float],
>            ^
> SyntaxError: invalid syntax
> 
> Compiling usr/lib/python2.7/site-packages/asgiref/wsgi.py ...
>   File "usr/lib/python2.7/site-packages/asgiref/wsgi.py", line 14
>     async def __call__(self, scope, receive, send):
>             ^
> SyntaxError: invalid syntax
> 
> Compiling usr/lib/python2.7/site-packages/autobahn/xbr/_buyer.py ...
>   File "usr/lib/python2.7/site-packages/autobahn/xbr/_buyer.py", line 195
>     async def stop(self):
>             ^
> SyntaxError: invalid syntax
> 
> Compiling usr/lib/python2.7/site-packages/autobahn/xbr/_interfaces.py ...
>   File "usr/lib/python2.7/site-packages/autobahn/xbr/_interfaces.py", line 141
>     async def start(self, session):
>         ^
> SyntaxError: invalid syntax
> 
> Compiling usr/lib/python2.7/site-packages/autobahn/xbr/_seller.py ...
>   File "usr/lib/python2.7/site-packages/autobahn/xbr/_seller.py", line 447
>     async def balance(self):
>             ^
> SyntaxError: invalid syntax
> 
> Compiling usr/lib/python2.7/site-packages/daphne/cli.py ...
>   File "usr/lib/python2.7/site-packages/daphne/cli.py", line 29
>     async def asgi(self, receive, send, scope):
>             ^
> SyntaxError: invalid syntax
> 
> Compiling usr/lib/python2.7/site-packages/daphne/server.py ...
>   File "usr/lib/python2.7/site-packages/daphne/server.py", line 213
>     async def handle_reply(self, protocol, message):
>             ^
> SyntaxError: invalid syntax
> 
> Compiling usr/lib/python2.7/site-packages/daphne/testing.py ...
>   File "usr/lib/python2.7/site-packages/daphne/testing.py", line 166
>     async def __call__(self, send, receive):
>             ^
> SyntaxError: invalid syntax

Now that I think more about this: the build should have aborted due to
these compilation failures, but it did not. Due to this, such problems
are not caught by our autobuilders. It probably makes sense to have a
look and see why the build doesn't abort as it should.

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



More information about the buildroot mailing list