From 5ffb43033319eecaa5032e6ca30cd78ab9f3a6cd Mon Sep 17 00:00:00 2001 From: termux-pacman-bot Date: Sat, 12 Nov 2022 08:09:24 +0000 Subject: [PATCH] improve(python): adding pip setup run after update in pacman (#13033) --- packages/python/build.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/python/build.sh b/packages/python/build.sh index 84dbb2c6f8..1f257f01de 100644 --- a/packages/python/build.sh +++ b/packages/python/build.sh @@ -106,6 +106,13 @@ termux_step_create_debscripts() { exit 0 POSTINST_EOF + # For pacman users have to completely reinstall python + # (first uninstall and then install) to set up pip. + # In order not to do this, need to run an action that runs after installation. + if [ "$TERMUX_PACKAGE_FORMAT" = "pacman" ]; then + echo "post_install" > postupg + fi + # Pre-rm script to cleanup runtime-generated files. cat <<- PRERM_EOF > ./prerm #!$TERMUX_PREFIX/bin/sh