【发布时间】:2016-07-14 21:37:59
【问题描述】:
我的 Python 包具有以下结构:
$ tree -d | grep -v "__pycache__"
.
├── src
│ ├── poliastro
│ │ ├── iod
│ │ ├── tests
│ │ └── twobody
│ │ └── tests
├── setup.py
└── MANIFEST.in
47 directories
执行python setup.py build后的Buf,最里面的test目录没有被复制:
$ tree -d | grep -v "__pycache__"
.
├── build
│ ├── lib
│ │ └── poliastro
│ │ ├── iod
│ │ ├── tests
│ │ └── twobody
相反,python setup.py sdist 工作正常。
到目前为止,我已经使用MANIFEST.in 规则在 sdist 中包含或排除某些文件、模式和目录。有没有办法控制build 目录的内容?为什么有些测试可以到达而有些则没有?
参考原始问题和源代码:https://github.com/poliastro/poliastro/issues/129
【问题讨论】:
-
可以分享
MANIFEST.in的内容吗?
标签: python setuptools packaging