The instructions are given for Debian-based Linux distros and for Windows. For Mac the Linux instructions should work after Python and virtualenv are installed.
First you need to install Python and some tools and libraries. Do this once.
- Install Python 3 and virtualenv
- Linux
- Run:
sudo apt install python3 virtualenv
- Run:
- Windows
- Download Python 3 from here: https://www.python.org/downloads/
- Install it and make sure it gets installed on the PATH.
- Open a command line prompt and run:
pip install virtualenv
- Linux
- Create a virtual environment
- Open a Terminal window and cd into the
xp-workshop-part-2
directory. - Linux:
virtualenv --python=python3 env
- Windows:
virtualenv env
- Open a Terminal window and cd into the
- Activate the virtual environment
- Linux:
source env/bin/activate
- Windows:
env/Scripts/activate.bat
- As long as (env) is displayed in your terminal, the
python
andpip
commands will use the versions in the virtual environment.
- Linux:
- Install dependencies into the virtual environment
pip install -r requirements.txt
- Whenever you start a new terminal, first activate the virtual environment
- Linux:
source env/bin/activate
- Windows:
env/Scripts/activate.bat
- Linux:
- Run unit tests like this:
pytest
- Then run the client in offline mode like this:
python client.py
- When that works, you can run the client in online mode:
python client.py --connect <server-ip>
Use https://github.com/khalim19/gimp-plugin-export-layers to export the layers of map.xcf
into the map
directory.