14
docs目录中我有以下结构的Python项目:如何包括蟒蛇分布
Clustering (project name)
clustering (package)
clustering.py and other modules
tests (sub-package)
test_clustering.py and other such files
docs/
bin/
我想包括我分配的文档目录,但我似乎无法做到这一点。任何关于如何做这件事的指针都会很有帮助。
我现在的setup.py看起来是这样的:
from distutils.core import setup
setup(name='Clustering',
version='1.0',
description='desc',
author='A',
author_email='[email protected]',
packages=['clustering', 'clustering.tests'],
requires=['numpy', 'scipy'],
scripts=['bin/predict', 'bin/verify']
)
我尝试使用package_data选项,但在包括在分发的文档目录都没有成功。有没有其他传统方式在发布中包含文档?
'移植docs'应该工作以及'递归包括文档*',对不对?有区别吗? – kojiro
为什么不为我工作? – holys