为什么';t./在python setup.py中配置工作?

为什么';t./在python setup.py中配置工作?,python,setuptools,automake,Python,Setuptools,Automake,在pythonsetup.py文件中使用subprocess.call([“/configure”])和subprocess.call([“make”])时,为什么autotools会查找错误版本的automake?我们呼吁: $ python setup.py install .... WARNING: 'automake-1.13' is missing on your system. You should only need it if you modified 'Makefi

在python
setup.py
文件中使用
subprocess.call([“/configure”])
subprocess.call([“make”])
时,为什么autotools会查找错误版本的automake?我们呼吁:

$ python setup.py install
....
WARNING: 'automake-1.13' is missing on your system.

     You should only need it if you modified 'Makefile.am' or

     'configure.ac' or m4 files included by 'configure.ac'.

     The 'automake' program is part of the GNU Automake package:

     <http://www.gnu.org/software/automake>

     It also requires GNU Autoconf, GNU m4 and Perl in order to run:

     <http://www.gnu.org/software/autoconf>

     <http://www.gnu.org/software/m4/>

     <http://www.perl.org/>
$python setup.py安装
....
警告:您的系统上缺少“automake-1.13”。
只有在修改“Makefile.am”或
“configure.ac”或“configure.ac”包含的m4文件。
“automake”计划是GNU automake软件包的一部分:
它还需要GNU Autoconf、GNU m4和Perl才能运行:

简短回答:使用
禁用维护者模式
关闭
调幅维护者模式

详细回答:尽管版本不同,但它不应该出错,因为它在命令行上工作良好。Python打包过程中存在一些干扰

当你这样做的时候

$ python setup.py sdist
setuptools
模块创建硬链接,从中创建tar存档,然后删除硬链接。在此链接过程中,文件上的时间戳已被修改,并且与原始修改时间不匹配,从而产生某些源文件已被修改的错觉

运行Makefile时,它会注意到时间戳的差异。如果启用了
AM\u MAINTAINER\u模式
,它将运行
missing
脚本。然后,此脚本检测aclocal版本的差异,导致
make
出错

--disable maintainer mode
选项传递到configure脚本应抑制调用
缺失的
脚本,并允许生成成功:

subprocess.call(["./configure", "--disable-maintainer-mode"])
subprocess.call(["make"])

(有关automake的维护者模式的更多信息,请参阅。显然,时间戳业务也是CVS用户的一个问题。)

一段代码如何显示失败的地方?显示代码,提供完整的错误跟踪,解释“不工作”的含义。我的第一个猜测是setup.py会过滤或破坏环境变量