Title: Theory / Important / CS / Programming / Python / VirtualEnv
Tags: hasNotNewEffectReturnsMeaning FromVariables computer_to_instruction fromCommandLine
On every note of this deck, unless a note says otherwise:
Page: https://virtualenv.pypa.io/en/stable/userguide/

Instruction: virtualenv foo
Page: https://virtualenv.pypa.io/en/stable/userguide/
Effect: Create a virtual environment in directory foo
Language: Python

Variable: ENV/lib
Meaning: folder for supporting library of the virtualenv
Language: Python
Variables: ENV a virtualenv

Variable: ENV/include
Meaning: ?
Language: Python
Variables: ENV a virtualenv

Variable: ENV/lib/pythonbar/site-packages/
Meaning: packages installed in the virtualenv ENV for python bar
Language: Python
Variables: ENV a virtualenv

Variable: ENV/bin
Meaning: the directory containing executiable for the virtualEnv ENV, in particular a python binary, pip and setuptools
Language: Python
Variables: ENV a virtualenv

Variable: ENV/bin/activate
Meaning: an activate script for the virtualEnv ENV
Language: Python
Variables: ENV a virtualenv

Name: Activate shell script
Definition: A script change $PATH so that running command use the python from a virtualenv and not for anything else
Page: https://virtualenv.pypa.io/en/stable/userguide/
Variables: ENV a virtualenv

Instruction: deactivate
Page: https://virtualenv.pypa.io/en/stable/userguide/
Effect: undo the effect of the activate script
Language: Python
Variables: ENV a virtualenv
Assuming: Activate shell script was run

Question: How to deactivate the environment ENV ?
Answer: Delete the folder ENV
Page: https://virtualenv.pypa.io/en/stable/userguide/
Variables: ENV a virtualenv

Fla: --system-site-package
Effect: your virtual environment will inherit packages from the global site packages directory
Page: https://virtualenv.pypa.io/en/stable/userguide/
Prefix: virtualenv
Variables: ENV a virtualenv

Fla: --relocatable
Effect: create a relocatable virtual environment
Page: https://virtualenv.pypa.io/en/stable/userguide/
Prefix: virtualenv
Assuming: you accept to take risk, there may be bug

Name: relocatable virtual environment
Definition: A virtual environment where the paths are relative and not absolute
Page: https://virtualenv.pypa.io/en/stable/userguide/
Context: virtualenv

Fla: --extra-search-dir=foo
Effect: search for pip and setuptool in directory foo instead of the standard version
Page: https://virtualenv.pypa.io/en/stable/userguide/
Prefix: virtualenv

Fla: --version
Effect: show program’s version number and exit
Page: https://virtualenv.pypa.io/en/stable/userguide/
Prefix: virtualenv

Variable: VIRTUALENV_FOO with FOO beeing foo where - are replaced by _ and every letter in uppercase
Meaning: The value by default for paramater foo when virtualenv is called
Context: virtualenv
Language: Python
Typ: environment variable
Variables: foo a command for virtualenv