-TERMUX_PKG_RM_AFTER_INSTALL="lib/python${_MAJOR_VERSION}/test lib/python${_MAJOR_VERSION}/tkinter lib/python${_MAJOR_VERSION}/turtledemo lib/python${_MAJOR_VERSION}/idlelib bin/python${_MAJOR_VERSION}m bin/idle*"
-
-termux_step_host_build () {
- # We need a host-built Parser/pgen binary, copied into cross-compile build in termux_step_post_configure() below
- $TERMUX_PKG_SRCDIR/configure
- make Parser/pgen
- # We need a python$_MAJOR_VERSION binary to be picked up by configure check:
- make
- rm -f python$_MAJOR_VERSION # Remove symlink if already exists to get a newer timestamp
- ln -s python python$_MAJOR_VERSION
-}
+TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --enable-loadable-sqlite-extensions"
+TERMUX_PKG_RM_AFTER_INSTALL="
+bin/python${_MAJOR_VERSION}m bin/idle*
+lib/python${_MAJOR_VERSION}/idlelib
+lib/python${_MAJOR_VERSION}/test
+lib/python${_MAJOR_VERSION}/tkinter
+lib/python${_MAJOR_VERSION}/turtledemo
+lib/python${_MAJOR_VERSION}/ctypes/test
+lib/python${_MAJOR_VERSION}/distutils/tests
+lib/python${_MAJOR_VERSION}/sqlite3/test
+lib/python${_MAJOR_VERSION}/unittest/test
+"