replace shutil.copytree and shutil.copy2 by a custom install command
do not touch shutil.copy (it's not used to write to store/ directory)
shutil.copytree can take a custom copy_function, unfortunately this isn't enough, since it is only called for the files. Therefore it doesn't allow to control the permissions of the directory.
shutil.copytree
andshutil.copy2
by a custominstall
commandshutil.copy
(it's not used to write tostore/
directory)shutil.copytree
can take a custom copy_function, unfortunately this isn't enough, since it is only called for the files. Therefore it doesn't allow to control the permissions of the directory.