我有我的Python包的结构如下:蟒蛇的setup.py建立忽视的一些文件
$ tree -d | grep -v "__pycache__"
.
├── src
│ ├── poliastro
│ │ ├── iod
│ │ ├── tests
│ │ └── twobody
│ │ └── tests
├── setup.py
└── MANIFEST.in
47 directories
BUF执行python setup.py build
后,最里面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内容吗? – creativeChips