diff options
Diffstat (limited to 'python')
-rw-r--r-- | python/pygame/README | 2 | ||||
-rw-r--r-- | python/pygame/pygame.SlackBuild | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/python/pygame/README b/python/pygame/README index a5a5eb633781..960d796ba92d 100644 --- a/python/pygame/README +++ b/python/pygame/README @@ -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 featured games and multimedia programs in the python language. Pygame is highly portable and runs on nearly every platform and operating system. + +Optional dependency: python3 diff --git a/python/pygame/pygame.SlackBuild b/python/pygame/pygame.SlackBuild index 36c5397ee23e..89cd4697ebc0 100644 --- a/python/pygame/pygame.SlackBuild +++ b/python/pygame/pygame.SlackBuild @@ -82,6 +82,12 @@ python -u buildconfig/config.py CFLAGS="$SLKCFLAGS" \ 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 \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true |