[Buildroot] [PATCH v2 04/20] python3: make it exclusive from python
Yegor Yefremov
yegorslists at googlemail.com
Sun Oct 9 09:44:28 UTC 2016
On Sun, Oct 9, 2016 at 9:55 AM, Bernd Kuhls <bernd.kuhls at t-online.de> wrote:
> Am Sat, 08 Oct 2016 20:23:09 +0200 schrieb Yegor Yefremov:
>
>> isn't mwclient Python 3 compatible? See [1]
>>
>> [1] https://github.com/mwclient/mwclient/blob/master/setup.py#L48
>
> Hi Yegor,
>
> using this defconfig
>
> BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
> BR2_PACKAGE_PYTHON3=y
> BR2_PACKAGE_PYTHON_MWCLIENT=y
>
> this error occurs with plain make:
> -------------------------------------------------
>>>> Finalizing target directory
> PYTHONPATH="/home/buildroot/br3_couchdb/output/target/usr/lib/python3.5/
> sysconfigdata/:/home/buildroot/br3_couchdb/output/target/usr/lib/
> python3.5/site-packages/" /home/buildroot/br3_couchdb/output/host/usr/bin/
> python3.5 support/scripts/pycompile.py /home/buildroot/br3_couchdb/output/
> target/usr/lib/python3.5
> Traceback (most recent call last):
> File "/home/buildroot/br3_couchdb/output/host/usr/lib/python3.5/
> py_compile.py", line 125, in compile
> _optimize=optimize)
> File "<frozen importlib._bootstrap_external>", line 700, in
> source_to_code
> File "<frozen importlib._bootstrap>", line 222, in
> _call_with_frames_removed
> File "/home/buildroot/br3_couchdb/output/target/usr/lib/python3.5/site-
> packages/mwclient/ex.py", line 15
> exec _file in globals(), predata
> ^
> SyntaxError: invalid syntax
> -------------------------------------------------
> This error does not occur with python2.
OK. I'll try to take a look at this issue.
Yegor
More information about the buildroot
mailing list