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>
This commit is contained in:
Andrew Clemons 2021-10-24 22:02:15 +13:00 committed by Willy Sudiarto Raharjo
parent c56367982c
commit 472a754492
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 3 additions and 3 deletions

Binary file not shown.

View file

@ -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