python/apsw: Always build python3.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Andrew Clemons 2022-03-07 20:44:26 +13:00 committed by Willy Sudiarto Raharjo
parent 51202f2516
commit 6908e35b80
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 2 additions and 7 deletions

View file

@ -3,6 +3,3 @@ contrast to other wrappers such as pysqlite it focuses on being a minimal layer
over SQLite attempting just to translate the complete SQLite API into Python.
The documentation has a section on the differences between APSW and pysqlite.
APSW supports CPython 2.3 onwards and CPython 3.1 onwards.
Note: To install python 3 set PYTHON3=yes.
# PYTHON3=yes ./apsw.SlackBuild

View file

@ -68,10 +68,8 @@ find -L . \
python setup.py build --enable-all-extensions
python setup.py install --root=$PKG --skip-build
if [ "${PYTHON3:-no}" == "yes" ]; then
python3 setup.py build --enable-all-extensions
python3 setup.py install --root=$PKG --skip-build
fi
python3 setup.py build --enable-all-extensions
python3 setup.py install --root=$PKG --skip-build
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true