X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/5c5234dbdfab2cd1a7d90ab2b3635fe536e39bbc..ea09f8ce7b1bcea38a7d9f0079a28c6109989342:/setup.py diff --git a/setup.py b/setup.py index 8d8f7a8..fb67958 100755 --- a/setup.py +++ b/setup.py @@ -4,7 +4,6 @@ import sys, glob, os from distutils.core import setup from stgit import version -from stgit.run import Run def __version_to_list(version): """Convert a version string to a list of numbers or strings @@ -28,7 +27,7 @@ def __check_min_version(min_ver, ver): def __check_python_version(): """Check the minimum Python version """ - pyver = '.'.join(str(n) for n in sys.version_info) + pyver = '.'.join(map(lambda x: str(x), sys.version_info)) if not __check_min_version(version.python_min_ver, pyver): print >> sys.stderr, 'Python version %s or newer required. Found %s' \ % (version.python_min_ver, pyver) @@ -37,6 +36,7 @@ def __check_python_version(): def __check_git_version(): """Check the minimum GIT version """ + from stgit.run import Run gitver = Run('git', '--version').output_one_line().split()[2] if not __check_min_version(version.git_min_ver, gitver): print >> sys.stderr, 'GIT version %s or newer required. Found %s' \ @@ -59,9 +59,9 @@ def __run_setup(): ('share/stgit/examples', glob.glob('examples/*.tmpl')), ('share/stgit/examples', ['examples/gitconfig']), ('share/stgit/contrib', ['contrib/diffcol.sh', - 'contrib/stgbashprompt.sh', - 'contrib/stgit-completion.bash']), - ('share/doc/stgit', glob.glob('doc/*.txt'))]) + 'contrib/stgbashprompt.sh']), + ('share/stgit/completion', ['stgit-completion.bash']) + ]) # Check the minimum versions required if sys.argv[1] in ['install', 'build']: