1 Star 0 Fork 0

hao1xiao1zi2/flow

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
setup.py 1.56 KB
一键复制 编辑 原始数据 按行查看 历史
#!/usr/bin/env python3
# flake8: noqa
"""Setup script for the Flow repository."""
from os.path import dirname, realpath
from setuptools import find_packages, setup, Distribution
import setuptools.command.build_ext as _build_ext
import subprocess
from flow.version import __version__
def _read_requirements_file():
"""Return the elements in requirements.txt."""
req_file_path = '%s/requirements.txt' % dirname(realpath(__file__))
with open(req_file_path) as f:
return [line.strip() for line in f]
class build_ext(_build_ext.build_ext):
"""External buid commands."""
def run(self):
"""Install traci wheels."""
subprocess.check_call(
['pip', 'install',
'https://akreidieh.s3.amazonaws.com/sumo/flow-0.4.0/'
'sumotools-0.4.0-py3-none-any.whl'])
class BinaryDistribution(Distribution):
"""See parent class."""
def has_ext_modules(self):
"""Return True for external modules."""
return True
setup(
name='flow',
version=__version__,
distclass=BinaryDistribution,
cmdclass={"build_ext": build_ext},
packages=find_packages(),
description=("A system for applying deep reinforcement learning and "
"control to autonomous vehicles and traffic infrastructure"),
long_description=open("README.md").read(),
url="https://github.com/flow-project/flow",
keywords=("autonomous vehicles intelligent-traffic-control"
"reinforcement-learning deep-learning python"),
install_requires=_read_requirements_file(),
zip_safe=False,
)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hao1xiao1zi2/flow.git
git@gitee.com:hao1xiao1zi2/flow.git
hao1xiao1zi2
flow
flow
master

搜索帮助