我有我的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