Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
eclipse
GitHub Repository: eclipse/sumo
Path: blob/main/tools/build_config/setup-libsumo-sk.py
169674 views
1
#!/usr/bin/env python
2
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3
# Copyright (C) 2017-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-libsumo-sk.py
15
# @author Benjamin Striner
16
# @author Michael Behrisch
17
# @date 2017-01-26
18
19
20
import os
21
from skbuild import setup
22
import version
23
24
SUMO_VERSION = version.get_pep440_version()
25
sumo_dir = os.path.abspath(os.path.dirname(__file__))
26
while not os.path.exists(os.path.join(sumo_dir, 'README.md')) and sumo_dir != os.path.dirname(sumo_dir):
27
sumo_dir = os.path.dirname(sumo_dir)
28
29
setup(
30
name='libsumo',
31
version=SUMO_VERSION,
32
url='https://sumo.dlr.de/docs/Libsumo.html',
33
author='DLR and contributors',
34
author_email='[email protected]',
35
license='EPL-2.0',
36
description="The python version of the libsumo API to communicate with the traffic simulation Eclipse SUMO",
37
long_description=open(os.path.join(sumo_dir, 'README.md')).read(),
38
long_description_content_type='text/markdown',
39
40
classifiers=[
41
'Development Status :: 4 - Beta',
42
'Intended Audience :: Developers',
43
'Intended Audience :: Science/Research',
44
'Programming Language :: Python :: 3',
45
],
46
keywords='traffic simulation traci sumo',
47
48
packages=['libsumo'],
49
package_dir={'': 'tools'},
50
package_data={'libsumo': ['*.pyd', '*.so', '*.dylib']},
51
install_requires=['traci>='+SUMO_VERSION, 'eclipse-sumo>='+SUMO_VERSION],
52
)
53
54