本文介绍了distutils可以在不安装的情况下执行依赖项检查吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有可能让distutils仅运行python模块依赖关系分析(并可能安装缺少的模块)而没有实际安装有问题的python模块?我想象一个命令如下:
Is it possible to have distutils just run the python module dependency analysis (and possibly install missing modules) without actually installing the python module in question? I imagine a command as follows:
./setup.py check-dependencies
它将报告目标系统上是否缺少任何依赖模块。
that would report if any dependent modules are missing on the target system.
推荐答案
我认为您可以得到的最接近的是:
I think the closest you can get is:
setup.py install -v -n
这意味着要进行空运行( -n
)以详细( -v
)模式。
which means to run a dry-run (-n
) in verbose (-v
) mode.
您还可以使用模块,它不能作为的选项setup.py
。
You could also use the distuitls.dep_util module, it wouldn't work as an option of setup.py
though.
HTH!
这篇关于distutils可以在不安装的情况下执行依赖项检查吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!