Advertisement
Guest User

Untitled

a guest
Apr 19th, 2012
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. from keystone's doc/source/setup.rst
  2.  
  3.  
  4. PyPi Packages and VirtualEnv
  5. ----------------------------
  6.  
  7. We recommend establishing a virtualenv to run keystone within. Virtualenv
  8. limits the python environment to just what you're installing as depdendencies,
  9. useful to keep a clean environment for working on Keystone. The tools directory
  10. in keystone has a script already created to make this very simple::
  11.  
  12. $ python tools/install_venv.py
  13.  
  14. This will create a local virtual environment in the directory ``.venv``.
  15. Once created, you can activate this virtualenv for your current shell using::
  16.  
  17. $ source .venv/bin/activate
  18.  
  19. The virtual environment can be disabled using the command::
  20.  
  21. $ deactivate
  22.  
  23. You can also use ``tools\with_venv.sh`` to prefix commands so that they run
  24. within the virtual environment. For more information on virtual environments,
  25. see virtualenv_.
  26.  
  27. .. _virtualenv: http://www.virtualenv.org/
  28.  
  29. If you want to run keystone outside of a virtualenv, you can install the
  30. dependencies directly into your system from the requires files::
  31.  
  32. # Install the dependencies for running keystone
  33. $ pip install -r tools/pip-requires
  34.  
  35. # Install the dependencies for developing, testing, and running keystone
  36. $ pip install -r tools/test-requires
  37.  
  38. # Use python setup.py to link Keystone into python's site-packages
  39. $ python setup.py develop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement