To develop and test east
the use of virtualenv
virtual environment is highly
recommended.
Additionally, makefile
file in the root directory contains most common
commands for interacting with the project.
- Install
virtualenv
:
pip install virtualenv
- Create and activate
virtualenv
, run this from the project root directory:
virtualenv venv
source venv/bin/activate
- To create an editable install of
east
tool run the below command. Whatever change you make in the code will be immediately reflected if you runeast
on the command line afterwards.
make install
To run unit tests:
make test
To format the project run:
make format
If make install
or make install-dev
(more exactly pip install -e .
) ever
misbehaves, it is probably due to this: pypa/pip#7953.
Run the below command once and then again make install
, this fixed it last
time:
python3 -m pip install --prefix=$(python3 -m site --user-base) -e .
This happens if the make install-dev
command was not run before running
make test
.