Skip to content
Basim Ramadhan edited this page May 22, 2017 · 11 revisions

Welcome to the lovelace-engine wiki!

How to Set Up Your Engine Development Environment

  1. Install python3 and pip if you don't already have them:

  2. Install virtualenv if you don't already have it: sudo pip install virtualenv

  3. Go to the root of the lovelace-engine repo: cd /path/to/lovelace-engine

  4. Create the virtual environment: make prepare-venv

  5. Create a soft link to the problem files: ln -s /path/to/lovelace-problems/problems ./problems

  6. Create a soft link to the tutorial files: ln -s /path/to/lovelace-problems/tutorials ./tutorials

  7. That's it! Just make sure to execute source env/bin/activate whenever you need to explicitly use the virtual environment.

Sources:

How to Install New Libraries

  1. Make sure you're virtual environment is set up: make prepare-venv
  2. Make sure you're using the virtual environment: source env/bin/activate
  3. Install the new library using pip: env/bin/pip install <library-name>
  4. Update the requirements.txt file in our repository with the new library: pip freeze > requirements.txt

Sources:

Clone this wiki locally