mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 15:08:51 +00:00
build-all - don't fail silently on missing Python dependencies
This commit is contained in:
+9
-17
@@ -1101,23 +1101,15 @@ 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),
|
||||||
build_dependency(
|
# because later ifcopenshell-python build will fail too but in a more confusing way.
|
||||||
f"python-{PYTHON_VERSION}",
|
build_dependency(
|
||||||
"autoconf",
|
f"python-{PYTHON_VERSION}",
|
||||||
PYTHON_CONFIGURE_ARGS,
|
"autoconf",
|
||||||
f"http://www.python.org/ftp/python/{PYTHON_VERSION}/",
|
PYTHON_CONFIGURE_ARGS,
|
||||||
f"Python-{PYTHON_VERSION}.tgz",
|
f"http://www.python.org/ftp/python/{PYTHON_VERSION}/",
|
||||||
)
|
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