Python package external dependencies

前端 未结 2 1029
伪装坚强ぢ
伪装坚强ぢ 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)
    0 讨论(0)
  • 2021-02-05 09:06

    Make it a proper package and read up about setuptools: Python setuptools link

    Dependencies can be specified using 'install_requires' parameter inside the setup.py file of your package.

    0 讨论(0)
提交回复
热议问题