From 66a33a76474537c0b7c788583267a655277f5514 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Fillion-Robin Date: Wed, 18 Jan 2017 15:02:18 -0500 Subject: [PATCH] manylinux-common: Fix pip install change ownership of "man" and "share" dir This commit will fix installation of packages like nose that would otherwise fail to install with error like the following: Installing collected packages: nose Exception: Traceback (most recent call last): [...] Permission denied: '/opt/_internal/cpython-2.7.11-ucs2/man' --- manylinux-common/pre_exec.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/manylinux-common/pre_exec.sh b/manylinux-common/pre_exec.sh index a871608..f5350a5 100755 --- a/manylinux-common/pre_exec.sh +++ b/manylinux-common/pre_exec.sh @@ -6,3 +6,10 @@ done for DIR in /opt/python/*/bin; do chown -R $BUILDER_UID:$BUILDER_GID $DIR done +for DIR in /opt/python/*; do + mkdir $DIR/man + chown -R $BUILDER_UID:$BUILDER_GID $DIR/man +done +for DIR in /opt/python/*/share; do + chown -R $BUILDER_UID:$BUILDER_GID $DIR +done