MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / build

Function build

win/build-all-win.py:60–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58
59
60def build() -> None:
61 for python_version in PYTHON_VERSIONS:
62 os.environ["PYTHON_VERSION"] = python_version
63 print(f"Building for Python {python_version}...")
64 subprocess.run(
65 [str(REPO_WIN / "build-deps.cmd"), "vs2022-ARM64" if is_arm64() else "vs2022-x64", "Release"],
66 check=True,
67 text=True,
68 input="y\n",
69 )
70 OLD_ADD_COMMIT_SHA = set_env("ADD_COMMIT_SHA", "ON")
71 run(
72 [
73 str(REPO_WIN / "run-cmake.bat"),
74 "vs2022-ARM64" if is_arm64() else "vs2022-x64",
75 "-DENABLE_BUILD_OPTIMIZATIONS=ON",
76 "-DGLTF_SUPPORT=ON",
77 ]
78 )
79 restore_env(*OLD_ADD_COMMIT_SHA)
80 run([str(REPO_WIN / "install-ifcopenshell.bat"), "vs2022-ARM64" if is_arm64() else "vs2022-x64", "Release"])
81
82
83def archive_executables() -> None:

Callers 1

mainFunction · 0.85

Calls 6

printFunction · 0.85
is_arm64Function · 0.85
set_envFunction · 0.85
runFunction · 0.70
restore_envFunction · 0.70
runMethod · 0.45

Tested by

no test coverage detected