Skip to content

Commit 2ca693b

Browse files
[Bugfix:System] Fix permissions on pip packages (#60)
1 parent bf7e931 commit 2ca693b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

install_lichen.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@ apt-get install -y libboost-all-dev
2727
# python requirements
2828
pip install -r ${lichen_repository_dir}/requirements.txt
2929

30+
# These permissions changes are copied from Submitty/.setup/INSTALL_SUBMITTY_HELPER.sh
31+
# Setting the permissions are necessary as pip uses the umask of the user/system, which
32+
# affects the other permissions (which ideally should be o+rx, but Submitty sets it to o-rwx).
33+
# This gets run here in case we make any python package changes.
34+
find /usr/local/lib/python*/dist-packages -type d -exec chmod 755 {} +
35+
find /usr/local/lib/python*/dist-packages -type f -exec chmod 755 {} +
36+
find /usr/local/lib/python*/dist-packages -type f -name '*.py*' -exec chmod 644 {} +
37+
find /usr/local/lib/python*/dist-packages -type f -name '*.pth' -exec chmod 644 {} +
38+
3039
########################################################################################################################
3140
# get tools/source code from other repositories
3241

0 commit comments

Comments
 (0)