python - Autotools:在 ./configure.sh 中包含 python 脚本

标签 python linux configure autotools autoconf

我们的 Linux C 应用程序的构建是由 GNU Autotools 执行的,在此期间我们需要查看客户端的文件系统并构建相当复杂的配置文件。从我们的角度来看,Python 脚本是解决这个问题的最佳方式。

  1. 那么,是否可以在里面运行自定义 python 脚本 ./configure.sh?
  2. 为此应如何更改 configure.acMakefile.am 文件?

谢谢。

最佳答案

我假设 configure.shconfigure

  1. 当然可以。 configure 只是一个 shell 脚本。
  2. automake 拥有 Python 的设施, Autoconf Macro Archive也有一些 Python 宏。

关于python - Autotools:在 ./configure.sh 中包含 python 脚本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18768404/

相关文章:

python - Django 如何在 View 中保存模型

c++ - 从 python 访问 C++ 类

regex - BASH KDialog 多文件输入 - 在特定空间拆分字符串

linux - linux执行ls -l命令第一行 "Total"是什么意思?

unity-container - 是否可以从 xml 文档而不是从文件配置 ms Unity 容器?

python - afex aov_ez ezANOVA 差异

python - 将 Python 列表转换为 Pandas 系列

linux - 您会选择哪个邮件服务器来开发您的产品

c++ - 如何在 configure.in 中测试 C++ 库的可用性?

windows - Windows 上的 Autoconf 和 configure.exe