summaryrefslogtreecommitdiff
path: root/python/hpack
diff options
context:
space:
mode:
authorBrenton Earl <brent@exitstatusone.com>2017-01-14 06:02:10 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-01-14 06:02:10 +0700
commit2f8088b8af6436ea237ec99455cace1c77eed1b2 (patch)
treea2f4cd49c27c94c5e16cca078590396d17fc54da /python/hpack
parentabb7ef7b412229767a3f20b5556c832a004a5eba (diff)
downloadslackbuilds-2f8088b8af6436ea237ec99455cace1c77eed1b2.tar.gz
python/hpack: Add python3 support.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/hpack')
-rw-r--r--python/hpack/hpack.SlackBuild7
1 files changed, 6 insertions, 1 deletions
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 <brent@exitstatusone.com>
+# Copyright 2015-2017 Brenton Earl <brent@exitstatusone.com>
# 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