Skip to content
This repository was archived by the owner on Nov 14, 2022. It is now read-only.

Installation

Elliot Oram edited this page Jun 9, 2020 · 23 revisions

This is for all services not included in the requirements list.

Virtual environment

To keep python packages we recommend using a python virtual environment. To do this you must install virtualenv:

pip install virtualenv

Create a virtualenv:

cd autoreduction
# Please note the below assumes python 3 is your default version.
# You can specify a python executable with the -p flag e.g. virtualenv -p /path/to/python3 venv3
virtualenv venv3

And activate your virtualenv:

# Windows
venv3\Scripts\activate

# or Linux
source venv3/bin/activate

To leave your virtual python environment simply type:

deactivate

Package setup

Autoreduction uses a combination of pip and a setup.py file to perform its installation. To install the service to pip (so that packages can be found) perform a pip install:

# from the parent directory of the git clone directory, and assume the name of the git folder is autoreduction
pip install -e autoreduction

Install testings requirements (development only)

Install the testing tools for the project with:

pip install -r autoreduction/requirements.txt

Clone this wiki locally