mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-02 21:12:07 +00:00
build-all.py option NO_CLEAN
This commit is contained in:
+5
-6
@@ -664,13 +664,12 @@ if "cgal" in targets:
|
|||||||
cecho("Building IfcOpenShell:", GREEN)
|
cecho("Building IfcOpenShell:", GREEN)
|
||||||
|
|
||||||
IFCOS_DIR = os.path.join(DEPS_DIR, "build", "ifcopenshell")
|
IFCOS_DIR = os.path.join(DEPS_DIR, "build", "ifcopenshell")
|
||||||
if os.path.exists(IFCOS_DIR):
|
if os.environ.get("NO_CLEAN", "").lower() not in {"1", "on", "true"}:
|
||||||
shutil.rmtree(IFCOS_DIR)
|
if os.path.exists(IFCOS_DIR):
|
||||||
os.makedirs(IFCOS_DIR)
|
shutil.rmtree(IFCOS_DIR)
|
||||||
|
os.makedirs(IFCOS_DIR, exist_ok=True)
|
||||||
executables_dir = os.path.join(IFCOS_DIR, "executables")
|
executables_dir = os.path.join(IFCOS_DIR, "executables")
|
||||||
if not os.path.exists(executables_dir):
|
os.makedirs(executables_dir, exist_ok=True)
|
||||||
os.makedirs(executables_dir)
|
|
||||||
|
|
||||||
logger.info("\rConfiguring executables...")
|
logger.info("\rConfiguring executables...")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user