From 2f8088b8af6436ea237ec99455cace1c77eed1b2 Mon Sep 17 00:00:00 2001 From: Brenton Earl Date: Sat, 14 Jan 2017 06:02:10 +0700 Subject: python/hpack: Add python3 support. Signed-off-by: Willy Sudiarto Raharjo --- python/hpack/hpack.SlackBuild | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'python/hpack') diff --git a/python/hpack/hpack.SlackBuild b/python/hpack/hpack.SlackBuild index 67d45a08d5..d8bd2995b4 100644 --- a/python/hpack/hpack.SlackBuild +++ b/python/hpack/hpack.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for hpack -# Copyright 2015-2016 Brenton Earl +# Copyright 2015-2017 Brenton Earl # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -71,6 +71,11 @@ find -L . \ python setup.py install --root=$PKG +# Python 3 support +if $(python3 -c 'import sys' 2>/dev/null); then + python3 setup.py install --root=$PKG +fi + # Manually generated with Sphinx # Recreate man page each hpack update install -Dm 644 $CWD/man_page/hpack.1 $PKG/usr/man/man1/hpack.1 -- cgit v1.2.3