mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 02:07:36 +00:00
build-all - don't fail silently on missing Python dependencies
This commit is contained in:
+2
-10
@@ -1101,7 +1101,8 @@ if "python" in targets and not USE_CURRENT_PYTHON_VERSION and "wasm" not in flag
|
|||||||
PYTHON_CONFIGURE_ARGS.extend(["--with-universal-archs=intel-64", "--enable-universalsdk"])
|
PYTHON_CONFIGURE_ARGS.extend(["--with-universal-archs=intel-64", "--enable-universalsdk"])
|
||||||
|
|
||||||
for PYTHON_VERSION in PYTHON_VERSIONS:
|
for PYTHON_VERSION in PYTHON_VERSIONS:
|
||||||
try:
|
# Don't fail silently on missing Python dependencies (e.g. openssl or zlib),
|
||||||
|
# because later ifcopenshell-python build will fail too but in a more confusing way.
|
||||||
build_dependency(
|
build_dependency(
|
||||||
f"python-{PYTHON_VERSION}",
|
f"python-{PYTHON_VERSION}",
|
||||||
"autoconf",
|
"autoconf",
|
||||||
@@ -1109,15 +1110,6 @@ if "python" in targets and not USE_CURRENT_PYTHON_VERSION and "wasm" not in flag
|
|||||||
f"http://www.python.org/ftp/python/{PYTHON_VERSION}/",
|
f"http://www.python.org/ftp/python/{PYTHON_VERSION}/",
|
||||||
f"Python-{PYTHON_VERSION}.tgz",
|
f"Python-{PYTHON_VERSION}.tgz",
|
||||||
)
|
)
|
||||||
except RuntimeError as e:
|
|
||||||
# Sometimes setting up modules such as pip/lzma can cause
|
|
||||||
# the python installer script to return a non zero exit
|
|
||||||
# code where actually the headers and dynamic libraries
|
|
||||||
# are installed correctly. This is all we need so we catch
|
|
||||||
# the exception and only reraise if a partially successful
|
|
||||||
# install is not detected.
|
|
||||||
if not os.path.exists(os.path.join(DEPS_DIR, "install", f"python-{PYTHON_VERSION}")):
|
|
||||||
raise e
|
|
||||||
|
|
||||||
if MAC_CROSS_COMPILE_INTEL:
|
if MAC_CROSS_COMPILE_INTEL:
|
||||||
assert original_path
|
assert original_path
|
||||||
|
|||||||
Reference in New Issue
Block a user