From bab9de2a52929fe2b45ecddb1eb09da3378e303b Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 2 Oct 2020 10:10:01 +1000 Subject: Cleanup: pep8, blank lines --- build_files/utils/make_utils.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'build_files/utils/make_utils.py') diff --git a/build_files/utils/make_utils.py b/build_files/utils/make_utils.py index e94c8e3550a..ce87bdd46e4 100755 --- a/build_files/utils/make_utils.py +++ b/build_files/utils/make_utils.py @@ -7,6 +7,7 @@ import shutil import subprocess import sys + def call(cmd, exit_on_error=True): print(" ".join(cmd)) @@ -19,6 +20,7 @@ def call(cmd, exit_on_error=True): sys.exit(retcode) return retcode + def check_output(cmd, exit_on_error=True): # Flush to ensure correct order output on Windows. sys.stdout.flush() @@ -35,6 +37,7 @@ def check_output(cmd, exit_on_error=True): return output.strip() + def git_branch(git_command): # Get current branch name. try: @@ -45,6 +48,7 @@ def git_branch(git_command): return branch.strip().decode('utf8') + def git_tag(git_command): # Get current tag name. try: @@ -54,6 +58,7 @@ def git_tag(git_command): return tag.strip().decode('utf8') + def git_branch_release_version(branch, tag): release_version = re.search("^blender-v(.*)-release$", branch) if release_version: @@ -64,6 +69,7 @@ def git_branch_release_version(branch, tag): release_version = release_version.group(1) return release_version + def svn_libraries_base_url(release_version): if release_version: svn_branch = "tags/blender-" + release_version + "-release" @@ -71,6 +77,7 @@ def svn_libraries_base_url(release_version): svn_branch = "trunk" return "https://svn.blender.org/svnroot/bf-blender/" + svn_branch + "/lib/" + def command_missing(command): # Support running with Python 2 for macOS if sys.version_info >= (3, 0): -- cgit v1.2.3