Skip to content

Commit

Permalink
Merge 17c09b5 into 593f4e2
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Nov 29, 2015
2 parents 593f4e2 + 17c09b5 commit 9eba5f2
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/devenv.rst
Expand Up @@ -74,6 +74,26 @@ This will both activate the ``mopidy`` virtualenv, and change the current
working directory to ``~/mopidy-dev``.


Creating a virtualenv with pyenv
================================

Creating a virtualenv with `pyenv <https://github.com/pyenv/pyenv>`__ (and its
plugin `pyenv-virtualenv https://github.com/yyuu/pyenv-virtualenv/`__) is
similar:

pyenv virtualenv -p $(PYENV_VERSION=system pyenv which python2.7) \
--system-site-packages system mopidy

To work on it, you can enable it in your shell:

pyenv shell mopidy

Or set it for the mopidy source directory (after cloning it, see below),
which will automatically use it when changing into this directory:

cd ~/mopidy-dev/mopidy/
pyenv local mopidy

Clone the repo from GitHub
--------------------------

Expand Down

0 comments on commit 9eba5f2

Please sign in to comment.