Python package external dependencies

Rnet picture Rnet · Apr 20, 2011 · Viewed 7.1k times · Source

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 give dependencies in java as .jar files?

Edit: What I had in my mind was giving a single script and an archive file which contains all the dependent modules, which would not require the end user to run any setup.py

Answer

Andreas Jung picture Andreas Jung · Apr 20, 2011

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.