为python项目创建makefile时出错

为python项目创建makefile时出错,python,makefile,autoconf,automake,Python,Makefile,Autoconf,Automake,我正试图找出如何为基于python的项目创建makefile(其次,这是我最熟悉的唯一编程语言),到目前为止,我一直遵循这一方法开始。但是,当生成configure.ac时,该文件是空的,configure文件也是空的 另外,当我运行aclocal时,我没有得到所描述的aclocal.m4,而是得到了aclocal.cache目录 最后,当我尝试运行automake--addmissing时,我收到了以下错误消息: $ automake --add-missing configure.ac: e

我正试图找出如何为基于python的项目创建makefile(其次,这是我最熟悉的唯一编程语言),到目前为止,我一直遵循这一方法开始。但是,当生成
configure.ac
时,该文件是空的,
configure
文件也是空的

另外,当我运行
aclocal
时,我没有得到所描述的
aclocal.m4
,而是得到了
aclocal.cache
目录

最后,当我尝试运行
automake--addmissing
时,我收到了以下错误消息:

$ automake --add-missing
configure.ac: error: no proper invocation of AM_INIT_AUTOMAKE was found.
configure.ac: You should verify that configure.ac invokes AM_INIT_AUTOMAKE,
configure.ac: that aclocal.m4 is present in the top-level directory,
configure.ac: and that aclocal.m4 was recently regenerated (using aclocal)
automake: error: no 'Makefile.am' found for any configure output
automake: Did you forget AC_CONFIG_FILES([Makefile]) in configure.ac?
现在,我很困惑什么是错的,该怎么办。第二,我也发现了


《搭便车指南》的描述够了吗?有比
make
技术更好的吗

Python项目目前通常使用
distutils
(标准库)或(distutils的增强版)构建,而不是
make
。我需要make方面的帮助!对于python项目,可能没有理由使用自动工具而不是distutils/setuptools。我建议你遵循《搭便车指南》,或者为什么你首先需要一个makefile?您使用的是哪种Python实现—CPython、IronPython、Jython,或者其他实现?回答这两个问题将使回答问题的人更好地了解如何提供帮助。总的来说,这个想法是Python不需要构建文件。distutils应提供您所需的一切。makefile通常构建一些东西,而Python脚本执行一些东西。这就是为什么您需要一个makefile似乎没有意义。我使用的是
python 2.7.4
,如果
makefile
构建了一些东西而不是
make install
执行与
setup.py install
相同的操作?我希望用户能够
git克隆
我的项目,然后运行
makeinstall
在他的机器上安装它!