简体   繁体   English

在不提供python setup.py的情况下进行构建-就地构建

[英]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.

相关问题 Python Setup.py Build_Ext --inplace - Python Setup.py Build_Ext --inplace 无法将“ python”识别为内部或外部命令python setup.py build_ext --inplace - 'python' is not recognized as an internal or external command python setup.py build_ext --inplace 命令`python setup.py build_ext --inplace`总是创建一个新目录 - The command `python setup.py build_ext --inplace` always create a new directory 运行'python setup.py build_ext --inplace'时出错 - Error while running 'python setup.py build_ext --inplace' python setup.py build_ext 在 Windows Azure 管道中 - python setup.py build_ext in Windows Azure pipeline setup.py:在其他任何事情之前运行build_ext - setup.py: run build_ext before anything else python setup.py build_ext --include-dirs = / usr / include / gdal / not work - python setup.py build_ext --include-dirs=/usr/include/gdal/ not work Python 3:setup.py:执行所有操作的pip install(build_ext + install) - Python 3: setup.py: pip install that does everything (build_ext + install) 运行 setup.py build_ext 时防止虚假 -m32 标志 - Preventing spurious -m32 flag when running running setup.py build_ext 调用 setup.py 安装时如何将 --debug 传递给 build_ext? - How to pass --debug to build_ext when invoking setup.py install?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM