[英]Making build --inplace without providing to python setup.py build_ext
I have a python project in which I have to execute this command every now and then. 我有一个python项目,在其中我必须不时执行此命令。
python setup.py build_clib
followed by 其次是
python setup.py build_ext --inplace
I want this to happen with just a single line code of python setup.py build
but that is not possible because I want my .so
file inplace
. 我希望仅使用
python setup.py build
一行代码来实现,但这是不可能的,因为我希望将.so
文件inplace
。
Is there any possible way of doing this? 有什么可行的方法吗?
You need to add these lines to your setup.cfg
file. 您需要将这些行添加到
setup.cfg
文件中。
[build_ext]
inplace=1
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.