Python_API_shutil_copy_待填充

shutil.copy(src,dst)
Copy the file src to the file or directorydst. If dst is a directory, a file with the same basename as src is created (or overwritten) in the directory specified. Permission bits are copied.src and dst are path names given as strings.

这个项目的setup文件如下,你帮我看看有什么问题from setuptools import setup from setuptools.command.install import install from distutils.sysconfig import get_python_lib import glob import shutil __library_file__ = './pangolin*.so' __version__ = '0.0.1' class CopyLibFile(install): """" Directly copy library file to python's site-packages directory. """ def run(self): install_dir = get_python_lib() lib_file = glob.glob(__library_file__) assert len(lib_file) == 1 and len(install_dirs) >= 1 print('copying {} -> {}'.format(lib_file[0], install_dirs[0])) shutil.copy(lib_file[0], install_dir) setup( name='pangolin', version=__version__, description='python binding for lightweight 3D visualization library Pangolin.', url='https://github.com/uoip/pangolin', license='MIT', cmdclass=dict( install=CopyLibFile ), keywords='Pangolin, binding, OpenGL, 3D, visualization, Point Cloud', long_description="""This is a Python binding for c++ library Pangolin (https://github.com/stevenlovegrove/Pangolin). Pangolin is a lightweight portable rapid development library for managing OpenGL display / interaction and abstracting video input. At its heart is a simple OpenGl viewport manager which can help to modularise 3D visualisation without adding to its complexity, and offers an advanced but intuitive 3D navigation handler. Pangolin also provides a mechanism for manipulating program variables through config files and ui integration, and has a flexible real-time plotter for visualising graphical data.""" )
最新发布
05-20
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值