mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-29 13:00:32 +01:00
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:
parent
c99731af6e
commit
31cebe6ee6
2 changed files with 7 additions and 9 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue