Path: blob/main/tools/build_config/buildWindowsSUMOWheel.py
194861 views
#!/usr/bin/env python1# -*- coding: utf-8 -*-2# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo3# Copyright (C) 2008-2026 German Aerospace Center (DLR) and others.4# This program and the accompanying materials are made available under the5# terms of the Eclipse Public License 2.0 which is available at6# https://www.eclipse.org/legal/epl-2.0/7# This Source Code may also be made available under the following Secondary8# Licenses when the conditions for such availability set forth in the Eclipse9# Public License 2.0 are satisfied: GNU General Public License, version 210# or later which is available at11# https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html12# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later1314# @file buildWindowsSUMOWheel.py15# @author Michael Behrisch16# @date 2024-03-071718import logging19import os20import sys21from os.path import join, dirname2223import status24import version252627def main():28logger = logging.getLogger()29logger.setLevel(logging.INFO)30SUMO_HOME = os.environ.get("SUMO_HOME", dirname(dirname(dirname(os.path.abspath(__file__)))))31for package in ("eclipse-sumo", "sumo-data", "libsumo"):32version.filter_pep440(join(SUMO_HOME, "build_config", "pyproject", package + ".toml"),33join(SUMO_HOME, "pyproject.toml"), package == "sumo-data")34status.log_subprocess([sys.executable, "-m", "build", "--wheel"], cwd=SUMO_HOME)353637if __name__ == "__main__":38main()394041