Skip to content

Commit

Permalink
building wheels locally on windows, disabling libtraci #13889
Browse files Browse the repository at this point in the history
  • Loading branch information
behrisch committed Dec 8, 2023
1 parent 43703cf commit 9668288
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/wheel-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,11 @@ jobs:
- name: Building libsumo plain
if: matrix.build_type == 'libsumo'
run: |
mkdir build_msvc
cmake -Bbuild_msvc -GNinja -DCHECK_OPTIONAL_LIBS=false
cmake --build build_msvc --config Release --target libsumo libtraci
xcopy /s data .\tools\libsumo\data\
python tools\build_config\version.py tools\build_config\setup-libsumo.py tools\setup.py
python -m build --wheel tools -o dist --config-setting=--plat-name=win_amd64
python tools\build_config\version.py tools\build_config\setup-libtraci.py tools\setup.py
python -m build --wheel tools -o dist --config-setting=--plat-name=win_amd64
- name: Building SUMO Wheels
if: matrix.build_type == 'sumo'
Expand Down
10 changes: 10 additions & 0 deletions tools/build_config/dailyBuildMSVC.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@
import zipfile
import shutil
import sys
import build

import status
import wix
from version import filter_setup_py

env = os.environ
if "SUMO_HOME" not in env:
Expand Down Expand Up @@ -179,6 +181,14 @@ def main(options, platform="x64"):
except Exception as e:
status.printLog("Warning: Could not create nightly sumo-game.zip! (%s)" % e)

if options.suffix == "extra":
shutil.copy(os.path.join(SUMO_HOME, "build_config", "pyproject.toml"),
os.path.join(SUMO_HOME, "pyproject.toml"))
filter_setup_py(os.path.join(SUMO_HOME, "build_config", "setup-sumo.py"), os.path.join(SUMO_HOME, "setup.py"))
build.ProjectBuilder(SUMO_HOME).build("wheel", {"--plat-name":"win_amd64"})
f = glob.glob(os.path.join(SUMO_HOME, "dist", "eclipse_sumo-*"))[0]
shutil.copy(f, os.path.join(options.remoteDir, f.replace("cp38-cp38", "py2.py3-none")))

debug_handler = status.set_rotating_log(makeAllLog, log_handler)
ret = status.log_subprocess(["cmake", "--build", ".", "--config", "Debug"], cwd=buildDir)
if ret == 0:
Expand Down

0 comments on commit 9668288

Please sign in to comment.