There are several methods for building and setting up a development environment.
- Create a new virtualenv with Python 3.6 (
virtualenv --python=<path-to-py3> venv) and source it - Install requirements via pip. For the moment there are two options:
- Install with plain pip using the
requirements - Install using Pipenv (which reads from the Pipfile)
- Install with plain pip using the
- Build nativepython libraries using
python setup.py build - Append the root of this repository to your
PYTHONPATH
This method is simple, and can take care of virtual environment creation and installation for you.
- (Optional) Create a new virtualenv with Python 3.6 (
virtualenv --python=<path-to-py3> venv) and source it. If you choose to use Pipenv alone, it will create an appropriate virtualenv for you. - Run
pipenv install --dev --deploy
The included Makefile in this repository contains recipes for building, installing, and testing. For the moment, it is explicitly linked to a specific Python interpreter, so if you are using, say, an interpreter called python3.6 (as opposed to python3), you will need to change the PYTHON variable at the top of the Makefile.
You can also customize the name and location of any built virtual environments with the VIRTUAL_ENV variable.
- Python 3.6 (recommended installed with homebrew)
- Currently build is tested against
clang, notgcc. For more information about installingclangand configuring your environment see here
- Currently build is tested against
- It is recommended you use Pipenv (see this link) to manage the application.
- You can also use virtualenv.
- install Redis (
brew install redis)
(These instructions are only for Ubuntu for the moment)
Before building the modules in this repository, you will need to make sure that you have the following:
- Python 3.6 with header files (
python3.6-dev python3.6-dbg) Note that for development you will also install the debug interpreter. If you are using Ubuntu 16 or earlier, you will first need to add the following PPA:Then run as normal:sudo add-apt-repository ppa:jonathonf/python-3.6sudo apt install python3.6-dev python3.6-dbg - Pipenv (see this link)
- Redis Server (
redis-server)