System environment:
Ubuntu 14.04 LTS
Python 2.7
First, the following tools have been installed on the system:
Git
Setuptools
Pip
Msgfmt
Virtualenv
Second, access to the source code
$ git clone https://github.com/openstack/keystone$ cd Keystone
Third, install some of the PIP does not support the dependency
sudo Install python-dev libxml2-dev libxslt1-dev libsasl2-dev libsqlite3-dev libssl-dev libldap2-dev Libffi-dev
Four, set the virtualenv for Keystone, the script has been written
$ python tools/install_venv.py
V. Command Sihui to create a local virtual environment under the. Venv directory, you can use the following command to start the virtual environment
$ source. venv/bin/activate
Other commands can also be run in this virtual environment, assuming we want to run "command" in that virtual environment, use the following instruction
$ tools\with_venv. SH <command>
Vi. after entering the virtual environment, you can use the command "deactivate" to turn off the virtual environment.
$ deactivate
Vii. Verification of successful installation
$ source. venv/bin/activate$ python
Import Keystone in Python's interactive interface to see if it's successful.
Import Keystone>>>
If there are no exceptions, the Keystone has been properly installed.
Ubuntu 14.04 LTS Source installation Juno version Keystone development Environment