mirror of
https://github.com/SlackBuildsOrg/slackbuilds
synced 2024-09-28 15:21:00 +02:00
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:
parent
c56367982c
commit
472a754492
2 changed files with 3 additions and 3 deletions
BIN
python/anyjson/anyjson-python3.patch.gz
Normal file
BIN
python/anyjson/anyjson-python3.patch.gz
Normal file
Binary file not shown.
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue