summaryrefslogtreecommitdiffstats
path: root/scripts/lib/ptxd_make_world_install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/ptxd_make_world_install.sh')
-rw-r--r--scripts/lib/ptxd_make_world_install.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_make_world_install.sh b/scripts/lib/ptxd_make_world_install.sh
index 6d119bae0..f26bdc7a1 100644
--- a/scripts/lib/ptxd_make_world_install.sh
+++ b/scripts/lib/ptxd_make_world_install.sh
@@ -22,6 +22,10 @@ ptxd_make_world_install_prepare() {
export -f ptxd_make_world_install_prepare
ptxd_make_world_install_python_cleanup() {
+ find "${pkg_pkg_dir}" -type f -name "*.so" -print | while read file; do
+ # Python installs shared libraries with executable flags
+ chmod -x "${file}"
+ done &&
find "${pkg_pkg_dir}" -type d -name bin -prune -o -name "*.py" -print | while read file; do
if [ -e "${file}c" -o ! -d "$(dirname "${file}")/__pycache__" ]; then
# not python3 or already handled