python - python的Maven等价物

我是一名 java 开发人员/python 初学者,我缺少我的 maven 功能,尤其是依赖项管理和构建自动化(我的意思是你不构建,但是如何创建一个用于部署的包?)

有没有对应的python实现这些功能?
注意:我使用python 2.x

谢谢。

最佳答案

Python 使用 distutils 和 setuptools 进行依赖和打包。

这是一个解释基础知识的教程:http://docs.activestate.com/activepython/3.2/diveintopython3/html/packaging.html

简而言之,您将拥有 setup.py 文件,其中包含依赖项和脚本编译/安装信息,您可以使用它构建鸡蛋、dist tarball、二进制 tarball 等。

https://stackoverflow.com/questions/3324108/

相关文章:

linux - SO_REUSEADDR(setsockopt 选项)的含义是什么 - Linux?

python - 使用 Pandas 计算每个组的唯一值

linux - 在 shell 脚本中缩进多行输出

linux - 在 Linux 的文本文件中用逗号替换空格

android - 如何在 Ubuntu 上安装 Android SDK?

python - 在 ipython 笔记本中测量单元执行时间的简单方法

c - Linux 中的 getch() 和 getche() 等价于什么?

mysql - 通过 shell 脚本使用 echo 命令自动化 mysql_secure_inst

linux - 在 Linux 中将多个 JPG 合并为单个 PDF

python - 如何跳过循环中的迭代?