Skip to content
Snippets Groups Projects
Commit d534bbf8 authored by Einar Largenius's avatar Einar Largenius
Browse files

Documented dependencies and how to install them

Rely on virtualenv because it seems to be a de facto standard.
parent b7d38235
Branches
No related tags found
No related merge requests found
# virtualenv
/bin/
/include/
/lib/
/pyvenv.cfg
# Generated files
*.pyc
......@@ -10,3 +10,41 @@ a password change portal which enables users to
change their passwords in IPA, after having their
credentials verified by SUPR.
# Development
## Dependencies
- python2
- python-virtualenv
- openldap@2.4
- cyrus-sasl
In addition, development libraries for python2 are necessary.
## Virtualenv
The development tooling are reliant on a tool called virtualenv, which
creates links to a installed version of python and also allows for
installing packages local to the project.
First create the virtual environment:
```sh
virtualenv -p python2 .
```
In order to enable it run the shell appropriate script found in the
newly created bin directory, for example:
```sh
source bin/activate
```
## Installing python dependencies
To install python dependencies have to be installed. Make sure that
you have ran the script in bin/activate first.
```sh
$ python -m pip install -r requirements.txt
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment