Skip to content
This repository was archived by the owner on Nov 24, 2024. It is now read-only.

Commit 9bcd932

Browse files
committed
fixes for macos catalina
1 parent bfaa9ed commit 9bcd932

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

nix/build-all.py

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
PCRE_VERSION="8.41"
9393
#LIBXML2_VERSION="2.9.3"
9494
LIBXML2_VERSION="2.9.9"
95-
CMAKE_VERSION="3.4.1"
95+
CMAKE_VERSION="3.4.3"
9696
#CMAKE_VERSION="3.14.5"
9797
SWIG_VERSION="3.0.12"
9898
#SWIG_VERSION="4.0.0"
@@ -598,6 +598,7 @@ def build_dependency(name, mode, build_tool_args, download_url, download_name, d
598598
download_url="https://github.com/KhronosGroup/OpenCOLLADA.git",
599599
download_name="OpenCOLLADA",
600600
download_tool=download_tool_git,
601+
patch="./patches/opencollada/pr622.patch",
601602
revision=OPENCOLLADA_VERSION
602603
)
603604

@@ -625,13 +626,19 @@ def PYTHON_VERSION_CONFS():
625626
yield v, unicode_conf, abi_tag
626627

627628
for PYTHON_VERSION, unicode_conf, abi_tag in PYTHON_VERSION_CONFS():
628-
build_dependency(
629-
"python-{PYTHON_VERSION}{abi_tag}".format(**locals()),
630-
"autoconf",
631-
PYTHON_CONFIGURE_ARGS + [unicode_conf],
632-
"http://www.python.org/ftp/python/{PYTHON_VERSION}/".format(**locals()),
633-
"Python-{PYTHON_VERSION}.tgz".format(**locals())
634-
)
629+
try:
630+
build_dependency(
631+
"python-{PYTHON_VERSION}{abi_tag}".format(**locals()),
632+
"autoconf",
633+
PYTHON_CONFIGURE_ARGS + [unicode_conf],
634+
"http://www.python.org/ftp/python/{PYTHON_VERSION}/".format(**locals()),
635+
"Python-{PYTHON_VERSION}.tgz".format(**locals())
636+
)
637+
except Exception as e:
638+
pyver2 = PYTHON_VERSION[:PYTHON_VERSION.rfind('.')]
639+
if os.path.exists("{DEPS_DIR}/install/python-{PYTHON_VERSION}{abi_tag}/bin/python{pyver2}".format(**locals())):
640+
print("Installation partially failed")
641+
else: raise e
635642

636643
os.environ["CXXFLAGS"]=OLD_CXX_FLAGS
637644
os.environ["CFLAGS"]=OLD_C_FLAGS

0 commit comments

Comments
 (0)