代码拉取完成,页面将自动刷新
同步操作将从 Gitee 极速下载/iss 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
from setuptools import Extension, setup
from Cython.Build import cythonize
import ISS.setup as ISS_setup
import numpy as np
import os
setups = [ISS_setup]
setup_dirs = ['ISS']
extensions = []
include_dirs = ['ISS/algorithms/planning/dubins/include']
for setup_, setup_dir_ in zip(setups, setup_dirs):
setup_ext = setup_.extensions
for ext_ in setup_ext:
ext_.name = setup_dir_ + '.' + ext_.name
ext_.sources = [setup_dir_ + '/' + source for source in ext_.sources]
ext_.include_dirs = [setup_dir_ + '/' + include_dir for include_dir in ext_.include_dirs]
extensions.append(ext_)
for ext_ in extensions:
print(ext_.name, ext_.sources, ext_.include_dirs)
ext_.include_dirs.append(np.get_include())
ext_.include_dirs += include_dirs
if not ext_.language:
ext_.language = 'c++'
if os.name == 'nt':
ext_.extra_compile_args = ["/O2"]
elif os.name == 'posix':
ext_.extra_compile_args = ["-O3"]
compiler_directives = {"language_level": 3, "embedsignature": True}
setup(
name="ISS",
ext_modules=cythonize(extensions, compiler_directives=compiler_directives),
# extra_compile_args=["/O3"],
)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。