Debian Codegraph @

docs/DEVELOPMENT.md

raw symbols SCIP
1 # Development Setup
2
3 The easiest way is to setup a virtualenv container and install the code using
4 the "editable" install feature of pip. Note that the package uses
5 [invoke](http://www.pyinvoke.org/) for management tasks, which itself will
6 execute shell commands, which are most likely only runnable on unix/linux
7 systems.
8
9 1. Create a virtual env, either using [virtualenvwrapper](https://virtualenvwrapper.readthedocs.io/en/latest/) or [virtualenv](https://pypi.python.org/pypi/virtualenv) directly and make sure to enter it:
10
11 ```
12 $ mkvirtualenv rjsmin
13 $ workon rjsmin
14 ```
15
16 1. Checkout the repository and install the dependencies
17
18 ```
19 $ git clone [email protected]:ndparker/rjsmin.git src/rjsmin
20 $ cd src/rjsmin
21 $ pip install -r development.txt
22 ```
23
24 1. For convenience reasons you might want to change into the source directory
25 automatically whenever you enter the venv again. Do it like that:
26
27 ```
28 $ echo 'cd "$VIRTUAL_ENV"/src/rjsmin' >> "$VIRTUAL_ENV"/bin/postactivate
29 ```