File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1094,10 +1094,19 @@ def build_dependency(
10941094 f"http://www.python.org/ftp/python/{ PYTHON_VERSION } /" ,
10951095 f"Python-{ PYTHON_VERSION } .tgz" ,
10961096 )
1097- python_bin = INSTALL_DIR / f"python-{ PYTHON_VERSION } " / "bin" / "python3"
1097+ python_install = INSTALL_DIR / f"python-{ PYTHON_VERSION } "
1098+ python_bin = python_install / "bin" / "python3"
10981099 # `_ssl` module is present -> we will be able to install `numpy` later
10991100 # to verify IfcOpenShell installation
1100- run ([str (python_bin ), "-c" , "import _ssl" ])
1101+ try :
1102+ run ([str (python_bin ), "-c" , "import _ssl" ])
1103+ except RuntimeError :
1104+ print (
1105+ "ERROR: Python was built without SSL support (_ssl module is missing). "
1106+ f"To fix this: remove the installed Python at { python_install } ; "
1107+ "install OpenSSL development libraries and re-run."
1108+ )
1109+ raise
11011110
11021111 if MAC_CROSS_COMPILE_INTEL :
11031112 assert original_path
You can’t perform that action at this time.
0 commit comments