| 58 | |
| 59 | |
| 60 | def 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 | |
| 83 | def archive_executables() -> None: |