开发者

How to manage different distribution packages of the same Python package?

开发者 https://www.devze.com 2023-01-25 06:57 出处:网络
Is there a way (with distribute or another package) to manage different distributions (meaning different setup.py fil开发者_JAVA技巧es) of the same Python package? You might have a look to buildout. W

Is there a way (with distribute or another package) to manage different distributions (meaning different setup.py fil开发者_JAVA技巧es) of the same Python package?


You might have a look to buildout. With buildout you can have a single setup.py for a package and have multiple buildout configuration files that specify different ways of building that package with the other packages you want to have in the same distribution (including its version dependencies).

I think with pip freeze, pip bundle you can also achieve something similar but AFAIK only for versions of packages (you can't install and setup an LDAP server for example, but you can do it that in buildout).

0

精彩评论

暂无评论...
验证码 换一张
取 消