diff options
author | Andrew Clemons <andrew.clemons@gmail.com> | 2021-10-24 22:02:15 +1300 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-10-27 08:40:37 +0700 |
commit | 472a754492f9c7856ea21ea38af27a38309488a4 (patch) | |
tree | 13b698efa79cb06676073efce63450a38a8e9a57 /python | |
parent | c56367982ca4e45b9be10fb639c96abbd4fd3d95 (diff) |
python/anyjson: Fix build with python 3.10.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python')
-rw-r--r-- | python/anyjson/anyjson-python3.patch.gz | bin | 0 -> 896 bytes | |||
-rw-r--r-- | python/anyjson/anyjson.SlackBuild | 6 |
2 files changed, 3 insertions, 3 deletions
diff --git a/python/anyjson/anyjson-python3.patch.gz b/python/anyjson/anyjson-python3.patch.gz Binary files differnew file mode 100644 index 000000000000..59e04e0e1d58 --- /dev/null +++ b/python/anyjson/anyjson-python3.patch.gz diff --git a/python/anyjson/anyjson.SlackBuild b/python/anyjson/anyjson.SlackBuild index 7d737d79f8c1..a7bbe56f3350 100644 --- a/python/anyjson/anyjson.SlackBuild +++ b/python/anyjson/anyjson.SlackBuild @@ -64,9 +64,9 @@ find -L . \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; python setup.py install --root=$PKG -if $(python3 -c 'import sys' 2>/dev/null); then - python3 setup.py install --root=$PKG -fi +zcat $CWD/anyjson-python3.patch.gz | patch -p1 +sed -i 's/use_2to3=True/use_2to3=False/g' setup.py +python3 setup.py install --root=$PKG mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a PKG-INFO $PKG/usr/doc/$PRGNAM-$VERSION |