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 Python 3.6 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. Install the new library using pip: env/bin/pip install <library-name>. If you've activated the virtual environment using source env/bin/activate, you can shorten env/bin/pip to just pip.
  3. Update the requirements.txt file in our repository with the new library: make update-requirements
  4. After you've pushed your changes to requirements.txt, other developers will also have the library when setting up their environment.

Sources:

Clone this wiki locally