python/pygame: Convert python to python2.

Signed-off-by: Dave Woodfall <dave@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Dave Woodfall 2021-05-21 21:32:20 +01:00 committed by Willy Sudiarto Raharjo
parent c99731af6e
commit 31cebe6ee6
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 7 additions and 9 deletions

View file

@ -1,4 +1,5 @@
Pygame is a set of Python modules designed for writing games. It is written
on top of the excellent SDL library. This allows you to create fully
featured games and multimedia programs in the python language. Pygame is
highly portable and runs on nearly every platform and operating system.
Pygame is a set of Python modules designed for writing games. It is
written on top of the excellent SDL library. This allows you to create
fully featured games and multimedia programs in the python language.
Pygame is highly portable and runs on nearly every platform and
operating system.

View file

@ -78,15 +78,12 @@ sed -i '/^if "install"/,$d' setup.py
# Fix warning message for missings dependencies
patch -p1 < $CWD/config_unix.patch
python -u buildconfig/config.py
python2 -u buildconfig/config.py
CFLAGS="$SLKCFLAGS" \
python setup.py install --root=$PKG
python2 setup.py install --root=$PKG
# Pythonn 3 support.
if $(python3 -c 'import sys' 2>/dev/null); then
CFLAGS="$SLKCFLAGS" \
python3 setup.py install --root=$PKG
fi
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true