Changeset 11382


Ignore:
Timestamp:
23 Feb 2014, 13:37:53 (11 years ago)
Author:
uli
Message:

Update virtualenv install section.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaua/trunk/INSTALL.txt

    r11381 r11382  
    6262=======================
    6363
    64 We recommend use of `virtualenv`_ to create Python_ sandboxes where you
    65 can run your code without touching any other installations.
    66 
    67 If you don't already have ``easy_install`` available, you can find the
    68 script to set it up on the `PEAK EasyInstall page`_.
    69 
    70 .. _`PEAK EasyInstall page`: http://peak.telecommunity.com/DevCenter/EasyInstall#installing-easy-install
    71 
    72 You need to download `ez_setup.py`_. Then, you run it like this to
    73 install ``easy_install`` into your system Python::
    74 
    75   $ sudo python2.7 ez_setup.py
    76 
    77 .. _`ez_setup.py`: http://peak.telecommunity.com/dist/ez_setup.py
    78 
    79 This will make ``easy_install`` available to you.
    80 
    81 .. note:: Sometimes you have ``easy_install`` installed but you need a
    82           newer version of the underlying setuptools infrastructure to
    83           make Grok work. You can upgrade setuptools with::
    84 
    85             $ sudo easy_install -U setuptools
    86 
    87 Now you can install `virtualenv` by doing (as root)::
    88 
    89   # easy_install-2.7 virtualenv
    90 
    91 This step will fetch all needed sources from the internet and install
    92 `virtualenv` locally in your Python2.7 installation.
     64We strongly suggest use of `virtualenv`_ to create Python_ sandboxes
     65where you can run your code without touching any other installations.
     66
     67`virtualenv`_ is also the only possibility to build a `Kofa` install
     68without the need of superuser permissions. In short: `virtualenv`_
     69will make your life easier. Use it.
     70
     71Detailed install instructions for `virtualenv`_ can be found on
     72http://www.virtualenv.org/en/latest/virtualenv.html#installation.
     73
     74The short way for a user install (no superuser perms required) is like
     75this::
     76
     77  $ curl -O https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.11.4.tar.gz#md5=9accc2d3f0ec1da479ce2c3d1fdff06e
     78  $ tar xvfz virtualenv-1.11.4.tar.gz
     79  $ cd virtualenv-1.11.4
     80  $ python virtualenv.py py27
     81
     82Superusers can install `virtualenv`_ system-wide much easier. On
     83`Debian`_/`Ubuntu`_ systems where you have superuser permissions, you
     84can install `virtualenv`_ via::
     85
     86  $ sudo apt-get install python-virtualenv
     87
     88*Or*, if `pip` is installed already (superusers can install it via ``sudo apt-get install python-pip`` on `Debian`_/`Ubuntu`_)::
     89
     90  $ sudo pip install virtualenv
     91
     92In the following, when referring to the `virtualenv` command, we talk
     93of the system-wide available command or the ``virtualenv.py`` script
     94installed for a local user. In the latter case you should read::
     95
     96  $ virtualenv ...
     97
     98as::
     99
     100  $ python /path/to/my/virtualenv.py ...
    93101
    94102
Note: See TracChangeset for help on using the changeset viewer.