代码拉取完成,页面将自动刷新
#!/usr/bin/env python
from __future__ import print_function
import errno
import os
import setuptools
import subprocess
import sys
from wheel.bdist_wheel import bdist_wheel
class platform_bdist_wheel(bdist_wheel):
"""Patched bdist_well to make sure wheels include platform tag."""
def finalize_options(self):
bdist_wheel.finalize_options(self)
self.root_is_pure = False
def mkdir_p(path):
"""Make a directory including parent directories."""
try:
os.makedirs(path)
except os.error as exc:
if exc.errno != errno.EEXIST or not os.path.isdir(path):
raise
def configure_c_extension():
"""Configure cmake project to C extension."""
print("Configuring for python {}.{}...".format(sys.version_info.major,
sys.version_info.minor))
mkdir_p('cmake_build')
cmake_command = [
'cmake',
'../opensfm/src',
'-DPYTHON_EXECUTABLE=' + sys.executable,
]
subprocess.check_call(cmake_command, cwd='cmake_build')
def build_c_extension():
"""Compile C extension."""
print("Compiling extension...")
subprocess.check_call(['make', '-j4'], cwd='cmake_build')
configure_c_extension()
build_c_extension()
setuptools.setup(
name='opensfm',
version='0.4.1a7',
description='A Structure from Motion library',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
url='https://github.com/mapillary/OpenSfM',
project_urls={
"Documentation": "https://docs.opensfm.org/",
},
author='Mapillary',
license='BSD',
packages=setuptools.find_packages(),
scripts=[
'bin/opensfm_run_all',
'bin/opensfm',
],
package_data={
'opensfm': [
'csfm.*',
'data/sensor_data.json',
]
},
# install_requires=[
# 'cloudpickle>=0.4.0',
# 'ExifRead>=2.1.2',
# 'gpxpy>=1.1.2',
# 'loky>=1.2.1',
# 'networkx>=1.11',
# 'numpy>=1.13',
# 'pyproj>=1.9.5.1',
# 'pytest>=3.0.7',
# 'python-dateutil>=2.6.0',
# 'PyYAML>=3.12',
# 'repoze.lru>=0.7',
# 'scipy',
# 'six',
# 'xmltodict>=0.10.2',
# ],
cmdclass={'bdist_wheel': platform_bdist_wheel},
)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。