Changeset 11383 for main/waeup.aaua


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

More about virtualenvs.

File:
1 edited

Legend:

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

    r11382 r11383  
    104104==================
    105105
    106 This step is only necessary (and recommended) if you installed
    107 `virtualenv` before.
    108 
    109 As a normal user you now can create a sandbox for your upcoming work
    110 by::
    111 
    112   $ virtualenv --no-site-packages mysandbox
    113 
    114 where ``mysandbox`` is a directory in the filesystem where your
    115 sandbox will be created. `virtualenv` will also create this directory
    116 for you.
     106After installing `virtualenv`_ you can install local sandboxes like
     107this::
     108
     109  $ virtualenv --no-site-packages py27
     110
     111where ``py27`` is a directory in the filesystem where your sandbox
     112will be created. `virtualenv` will also create this directory for
     113you. It is recommended to use a sandbox name that is short and at the
     114same time reflects the Python version used (here: Python 2.7).
    117115
    118116By passing the ``no-site-packages`` switch we tell `virtualenv` to
    119117provide us a clean environment without any extra-packages installed
    120 systemwide.
     118systemwide. More recent versions of `virtualenv`_ have this option set
     119by default.
     120
     121Another often used option of `virtualenv`_ is ``-p``. With ``-p`` you
     122can tell `virtualenv`_ which Python executable to use as base for the
     123new sandbox.
    121124
    122125You now can activate the sandbox by doing::
    123126
    124   $ source mysandbox/bin/activate
     127  $ source py27/bin/activate
     128  (py27)$
    125129
    126130You will notice that the input prompt changes.
     
    128132To deactivate the sandbox at any time, enter::
    129133
    130   (sandbox27)$ deactivate
     134  (py27)$ deactivate
    131135
    132136and the prompt will be the same as before the activation.
     
    142146sources of Kofa from the subversion server::
    143147
    144   (sandbox27)$ cd mysandbox/
    145   (sandbox27)$ svn co https://svn.waeup.org/repos/main/waeup.kofa/trunk kofa-trunk
     148  (py27)$ cd mysandbox/
     149  (py27)$ svn co https://svn.waeup.org/repos/main/waeup.kofa/trunk kofa-trunk
    146150
    147151where ``kofa-trunk`` is only a name we've chosen here to make clear
Note: See TracChangeset for help on using the changeset viewer.