Set up virtualenv to use py2

This commit sponsored by Jonas Öberg.  Thanks Jonas!
This commit is contained in:
Christopher Allan Webber 2014-08-03 14:09:31 -05:00
parent 2d4d24f51e
commit 23002ee77f

View File

@ -200,7 +200,7 @@ Clone the MediaGoblin repository and set up the git submodules::
And set up the in-package virtualenv:: And set up the in-package virtualenv::
(virtualenv --system-site-packages . || virtualenv .) && ./bin/python setup.py develop (virtualenv --python=python2 --system-site-packages . || virtualenv --python=python22 .) && ./bin/python setup.py develop
.. note:: .. note::
@ -214,16 +214,6 @@ And set up the in-package virtualenv::
Note: this is liable to break. Use this method with caution. Note: this is liable to break. Use this method with caution.
.. ::
(NOTE: Is this still relevant?)
If you have problems here, consider trying to install virtualenv
with the ``--distribute`` or ``--no-site-packages`` options. If
your system's default Python is in the 3.x series you may need to
run ``virtualenv`` with the ``--python=python2.7`` or
``--python=python2.6`` options.
The above provides an in-package install of ``virtualenv``. While this The above provides an in-package install of ``virtualenv``. While this
is counter to the conventional ``virtualenv`` configuration, it is is counter to the conventional ``virtualenv`` configuration, it is
more reliable and considerably easier to configure and illustrate. If more reliable and considerably easier to configure and illustrate. If