-
Notifications
You must be signed in to change notification settings - Fork 3
Home
Basim Ramadhan edited this page Jul 4, 2017
·
11 revisions
Welcome to the lovelace-engine wiki!
- Add the VirtualBox apt package repository:
echo 'deb http://download.virtualbox.org/virtualbox/debian zesty contrib' | sudo tee -a /etc/apt/sources.list
- Download the Oracle public key for the apt repository:
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
- Install VirtualBox:
sudo apt-get update
sudo apt-get install virtualbox-5.1
- Install the latest extension pack:
- ``VBOXVERSION=`VBoxManage --version | sed -r 's/([0-9]).([0-9]).([0-9]{1,2}).*/\1.\2.\3/'```
wget -q -N "http://download.virtualbox.org/virtualbox/$VBOXVERSION/Oracle_VM_VirtualBox_Extension_Pack-$VBOXVERSION.vbox-extpack"
VBoxManage extpack install --replace Oracle*.vbox-extpack
- Download the latest Vagrant from their website as a .deb file.
- Install Vagrant:
sudo dpkg -i /path/to/vagrant/deb/file
sudo apt-get install --fix-broken
- Install virtualenv (Ubuntu):
sudo apt-get install virtualenv
- Download the repo:
git clone https://github.com/project-lovelace/lovelace-engine.git
- Go to the root of the repo:
cd /path/to/lovelace-engine
- Create the virtual environment:
make prepare-venv
- Outside the lovelace-engine repo, download the private problems repo.
- Create a soft link to the problem files:
ln -s /path/to/lovelace-problems/problems ./problems
- Create a soft link to the tutorial files:
ln -s /path/to/lovelace-problems/tutorials ./tutorials
- That's it! Just make sure to execute
source env/bin/activate
whenever you need to explicitly use the Python runtime and libraries inside the virtual environment.
- Make sure you're virtual environment is set up:
make prepare-venv
- Install the new library using pip:
env/bin/pip install <library-name>
. If you've activated the virtual environment usingsource env/bin/activate
, you can shortenenv/bin/pip
to justpip
. - Update the requirements.txt file in our repository with the new library:
make update-requirements
- After you've pushed your changes to requirements.txt, other developers will also have the library when setting up their environment.