Book Image

OpenShift Cookbook

By : Shekhar Gulati
Book Image

OpenShift Cookbook

By: Shekhar Gulati

Overview of this book

Table of Contents (19 chapters)
OpenShift Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Running OpenShift on a Virtual Machine
Index

Installing a custom Python package


Most of the time, your application dependencies can be downloaded from PyPi using pip, but there are times when your application needs to depend on custom libraries that do not exist in the PyPi index. In this recipe, you will learn how to use custom Python packages with your OpenShift Python applications. The source code for this recipe is on GitHub at https://github.com/OpenShift-Cookbook/chapter8-custom-package-recipe.

Getting ready

This recipe is based on the assumption that you have read the previous recipes in this chapter. To walk through this recipe, you will need the rhc command-line client installed on your machine. Please refer to the Installing the OpenShift rhc command-line client recipe in Chapter 1, Getting Started with OpenShift, for details. Also, if you want to run the application on your local machine, you will need to have Python, pip, and virtualenv installed on your machine. Please refer to the introduction section for links to installation...