简体   繁体   English

如何编写安装包(除了一个子模块外)的setup.py?

[英]How to write setup.py that installs package except for one submodule?

I'm working on porting a library to python 3, however, one of its submodules is terribly broken, all the unit tests fail on Python 3 because of that, and the author has advised me to delete it rather than wait for him to fix it. 我正在将库移植到python 3,但是,其子模块之一严重损坏,所有单元测试都因此而在python 3上失败,作者建议我删除它,而不要等他修复它。 If I do that, however, merging will surely be more difficult. 但是,如果我这样做,合并肯定会更加困难。 Is there any way to just tell distutils to not install it (or its test case)? 有什么方法可以告诉distutils不要安装它(或其测试用例)吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM