开发者

setup.py and source control repository

开发者 https://www.devze.com 2023-04-05 16:57 出处:网络
I am about to build a new python lib and I was seeking information concerning packaging in Python. I understand that \"setup.py\" is the script that controls everything. I wonder how to deal with it

I am about to build a new python lib and I was seeking information concerning packaging in Python.

I understand that "setup.py" is the script that controls everything. I wonder how to deal with it when there are external libraries in svn for instance.

How to download automatically a given version from the repository using "se开发者_Go百科tup.py" ?


docs for this are at the cheese shop

use the requires keyword


I may not have understood the problem correctly. For any additional dependencies, you mention them in setup.py as

install_requires=['module1 >= 1.3', 'module2 >=1.8.2']

When you use setuptools, easy_install oo pip, these external dependencies will get installed during setup, if required. These should also be available in package repositories for download.

0

精彩评论

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