O'Reilly logo

OpenShift Cookbook by Shekhar Gulati

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Managing Python application dependencies

OpenShift gives the Python developer two options to specify their application dependencies. You can specify application dependencies either in the install_requires element in setup.py, in requirements.txt, or both. When dependencies are specified in both the setup.py and requirements.txt files, OpenShift will install all the libraries mentioned in both the files. The setup.py file is required when you want to distribute your library as a package that others can use. All the packages listed on PyPi need to have the setup.py script in their root directory. As you do not want to distribute your web applications as a package, there is no need to use the setup.py file. I recommend that you use requirements.txt ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required