def main(): # ensure readable files old_mask = os.umask(0022) _check_python_version() _setup_environment() _check_git_version() _check_pyqt_version() version.write_builtin_version() _run_setup() # restore the old mask os.umask(old_mask)
def main(): # ensure readable files old_mask = os.umask(0022) if sys.argv[1] in ('install', 'build'): _setup_environment() _check_python_version() _check_git_version() _check_pyqt_version() _check_jsonpickle_version() _build_translations() # msgfmt: .po -> .qm # First see if there is a version file (included in release tarballs), # then try git-describe, then default. builtin_version = os.path.join('cola', 'builtin_version.py') if os.path.exists('version') and not os.path.exists(builtin_version): shutils.copy('version', builtin_version) elif os.path.exists('.git'): version.write_builtin_version() _run_setup() # restore the old mask os.umask(old_mask)