Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
eclipse
GitHub Repository: eclipse/sumo
Path: blob/main/tools/build_config/setup-sumo.py
169674 views
1
#!/usr/bin/env python
2
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3
# Copyright (C) 2020-2025 German Aerospace Center (DLR) and others.
4
# This program and the accompanying materials are made available under the
5
# terms of the Eclipse Public License 2.0 which is available at
6
# https://www.eclipse.org/legal/epl-2.0/
7
# This Source Code may also be made available under the following Secondary
8
# Licenses when the conditions for such availability set forth in the Eclipse
9
# Public License 2.0 are satisfied: GNU General Public License, version 2
10
# or later which is available at
11
# https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12
# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13
14
# @file setup-sumo.py
15
# @author Michael Behrisch
16
# @date 2020-07-28
17
18
import os
19
from skbuild import setup
20
import version
21
22
SUMO_VERSION = version.get_pep440_version()
23
sumo_dir = os.path.abspath(os.path.dirname(__file__))
24
while not os.path.exists(os.path.join(sumo_dir, 'README.md')) and sumo_dir != os.path.dirname(sumo_dir):
25
sumo_dir = os.path.dirname(sumo_dir)
26
27
setup(
28
name='eclipse-sumo',
29
version=SUMO_VERSION,
30
url='https://sumo.dlr.de/',
31
download_url='https://sumo.dlr.de/download',
32
author='DLR and contributors',
33
author_email='[email protected]',
34
license='EPL-2.0',
35
description=("A microscopic, multi-modal traffic simulation package"),
36
long_description=open(os.path.join(sumo_dir, 'README.md')).read(),
37
long_description_content_type='text/markdown',
38
39
classifiers=[
40
'Development Status :: 5 - Production/Stable',
41
'Intended Audience :: Developers',
42
'Intended Audience :: Science/Research',
43
'Programming Language :: C++',
44
'Programming Language :: Python :: 2',
45
'Programming Language :: Python :: 3',
46
],
47
keywords='traffic simulation traci sumo',
48
49
packages=['sumo'],
50
package_dir={'': 'tools/build_config'},
51
52
cmake_install_dir='tools/build_config/sumo',
53
54
entry_points={
55
'console_scripts': [
56
'activitygen=sumo:activitygen',
57
'dfrouter=sumo:dfrouter',
58
'duarouter=sumo:duarouter',
59
'emissionsDrivingCycle=sumo:emissionsDrivingCycle',
60
'emissionsMap=sumo:emissionsMap',
61
'jtrrouter=sumo:jtrrouter',
62
'marouter=sumo:marouter',
63
'netconvert=sumo:netconvert',
64
'netedit=sumo:netedit',
65
'netgenerate=sumo:netgenerate',
66
'od2trips=sumo:od2trips',
67
'polyconvert=sumo:polyconvert',
68
'sumo=sumo:sumo',
69
'sumo-gui=sumo:sumo_gui',
70
]
71
},
72
)
73
74