Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
eclipse
GitHub Repository: eclipse/sumo
Path: blob/main/tools/build_config/buildWindowsSUMOWheel.py
194861 views
1
#!/usr/bin/env python
2
# -*- coding: utf-8 -*-
3
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
4
# Copyright (C) 2008-2026 German Aerospace Center (DLR) and others.
5
# This program and the accompanying materials are made available under the
6
# terms of the Eclipse Public License 2.0 which is available at
7
# https://www.eclipse.org/legal/epl-2.0/
8
# This Source Code may also be made available under the following Secondary
9
# Licenses when the conditions for such availability set forth in the Eclipse
10
# Public License 2.0 are satisfied: GNU General Public License, version 2
11
# or later which is available at
12
# https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
13
# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
14
15
# @file buildWindowsSUMOWheel.py
16
# @author Michael Behrisch
17
# @date 2024-03-07
18
19
import logging
20
import os
21
import sys
22
from os.path import join, dirname
23
24
import status
25
import version
26
27
28
def main():
29
logger = logging.getLogger()
30
logger.setLevel(logging.INFO)
31
SUMO_HOME = os.environ.get("SUMO_HOME", dirname(dirname(dirname(os.path.abspath(__file__)))))
32
for package in ("eclipse-sumo", "sumo-data", "libsumo"):
33
version.filter_pep440(join(SUMO_HOME, "build_config", "pyproject", package + ".toml"),
34
join(SUMO_HOME, "pyproject.toml"), package == "sumo-data")
35
status.log_subprocess([sys.executable, "-m", "build", "--wheel"], cwd=SUMO_HOME)
36
37
38
if __name__ == "__main__":
39
main()
40
41