Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-09-30 11:19:55 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-09-30 11:51:17 +0300
commit64c8e9a2196f657261e737ba62d1cb479e04a518 (patch)
tree215968973f70fbaa6fa28d8099a8c48f41bf4099 /build_files/utils/make_utils.py
parenta6a0a091978d09ffa85306dcabb671370a5bb322 (diff)
macOS: don't require python3 to be installed to run "make update"
And fall back to python3 from our libraries for other commands, once checked out with make update.
Diffstat (limited to 'build_files/utils/make_utils.py')
-rwxr-xr-xbuild_files/utils/make_utils.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/build_files/utils/make_utils.py b/build_files/utils/make_utils.py
index 0c63a18b0ba..5fedd792149 100755
--- a/build_files/utils/make_utils.py
+++ b/build_files/utils/make_utils.py
@@ -3,6 +3,7 @@
# Utility functions for make update and make tests.
import re
+import shutil
import subprocess
import sys
@@ -54,3 +55,10 @@ def svn_libraries_base_url(release_version):
else:
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):
+ return shutil.which(command) is None
+ else:
+ return False