Python package external dependencies

前端 未结 2 1044
伪装坚强ぢ
伪装坚强ぢ 2021-02-05 08:06

I\'m writing a python script which uses an external library (paramiko). If I\'m to release the package how do I package paramiko also? Is there anyway I can give it as we can gi

2条回答
  •  孤街浪徒
    2021-02-05 08:43

    If I'm to release the package how do I package paramiko also?

    You don't. Instead you declare the dependencies:

    1. Install Distribute (already included with ActivePython)
    2. Add install_requires to your setup.py (eg: see Fabric's setup.py)

提交回复
热议问题