python/pygame: Added python3 support.

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2019-09-23 18:42:08 +02:00 committed by Willy Sudiarto Raharjo
parent 2ac8c1eda2
commit 998acc712f
No known key found for this signature in database
GPG Key ID: 887B8374D7333381
2 changed files with 8 additions and 0 deletions

View File

@ -2,3 +2,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 on top of the excellent SDL library. This allows you to create fully
featured games and multimedia programs in the python language. Pygame is featured games and multimedia programs in the python language. Pygame is
highly portable and runs on nearly every platform and operating system. highly portable and runs on nearly every platform and operating system.
Optional dependency: python3

View File

@ -82,6 +82,12 @@ python -u buildconfig/config.py
CFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \
python setup.py install --root=$PKG python 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 \ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true