X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/blobdiff_plain/453d47aec1a82cef50b71befaceae17a3df6e5d3..fa2fa45e4ea2e767e1b678b4f303d0f64846df1a:/setup.py?ds=inline diff --git a/setup.py b/setup.py index 7b0ded5..3be087c 100755 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -import sys, glob +import sys, glob, os from distutils.core import setup from stgit.version import version, git_min_ver, python_min_ver @@ -48,6 +48,9 @@ if sys.argv[1] in ['install', 'build']: __check_python_version() __check_git_version() +# ensure readable template files +old_mask = os.umask(0022) + setup(name = 'stgit', version = version, license = 'GPLv2', @@ -57,7 +60,7 @@ setup(name = 'stgit', description = 'Stacked GIT', long_description = 'Push/pop utility on top of GIT', scripts = ['stg'], - packages = ['stgit', 'stgit.commands'], + packages = ['stgit', 'stgit.commands', 'stgit.lib'], data_files = [('share/stgit/templates', glob.glob('templates/*.tmpl')), ('share/stgit/examples', glob.glob('examples/*.tmpl')), ('share/stgit/examples', ['examples/gitconfig']), @@ -66,3 +69,6 @@ setup(name = 'stgit', 'contrib/stgit-completion.bash']), ('share/doc/stgit', glob.glob('doc/*.txt'))] ) + +# restore the old mask +os.umask(old_mask)