From 97d3a51dd86657fbfbd7d1b11ce3771c836c9adc Mon Sep 17 00:00:00 2001 From: David Spencer Date: Fri, 7 Apr 2017 16:19:19 +0100 Subject: python/bsddb3: Add python3 support. Signed-off-by: David Spencer --- python/bsddb3/README | 6 ++++++ python/bsddb3/bsddb3.SlackBuild | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/python/bsddb3/README b/python/bsddb3/README index 0dd2394514..1d63c26b04 100644 --- a/python/bsddb3/README +++ b/python/bsddb3/README @@ -8,3 +8,9 @@ objects can use various access methods: btree, hash, recno, and queue. Complete support of Berkeley DB distributed transactions. Complete support for Berkeley DB Replication Manager. Complete support for Berkeley DB Base Replication. Support for RPC. + + +python3 is an optional dependency. You need to set PYTHON3=yes, +for example: + + PYTHON3=yes ./bsddb3.SlackBuild diff --git a/python/bsddb3/bsddb3.SlackBuild b/python/bsddb3/bsddb3.SlackBuild index 4c97228294..320a815bba 100644 --- a/python/bsddb3/bsddb3.SlackBuild +++ b/python/bsddb3/bsddb3.SlackBuild @@ -71,6 +71,11 @@ find -L . \ python setup.py install --root=$PKG +if [ "${PYTHON3:-no}" = "yes" ]; then + rm -rf build + 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 -- cgit v1.2.3