diff options
Diffstat (limited to 'python/anyjson/anyjson.SlackBuild')
-rw-r--r-- | python/anyjson/anyjson.SlackBuild | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/anyjson/anyjson.SlackBuild b/python/anyjson/anyjson.SlackBuild index 7d737d79f8c15..a7bbe56f33504 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 |