#!/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
__check_python_version()
__check_git_version()
+# ensure readable template files
+old_mask = os.umask(0022)
+
setup(name = 'stgit',
version = version,
license = 'GPLv2',
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']),
'contrib/stgit-completion.bash']),
('share/doc/stgit', glob.glob('doc/*.txt'))]
)
+
+# restore the old mask
+os.umask(old_mask)