To work with the tdl source, your environment must be set up to build
Python C extensions. You'll also need cpp
installed for
use with pycparser.
- Install Microsoft Visual Studio -- When asked, choose to install the Python development tools.
- Install MinGW.
-- Installer is here.
-- Add the binary folder (default folder is
C:\MinGW\bin
) to your user environment PATH variable. - Open a command prompt in the cloned git directory.
- Make sure the libtcod submodule is downloaded with this command:
git submodule update --init
- Install an editable version of tdl with this command:
py -m pip install --editable . --verbose
- Open a command prompt in the cloned git directory.
- Install the Xcode command line tools with this command:
xcode-select --install
- Make sure the libtcod submodule is downloaded with this command:
git submodule update --init
- Install an editable version of tdl with this command:
pip install --editable . --verbose
- Open a command prompt in the cloned git directory.
- Assuming a Debian based distribution of Linux.
Install tdl's dependancies with this command:
sudo apt install gcc python-dev libsdl2-dev libffi-dev libomp-dev
- Make sure the libtcod submodule is downloaded with this command:
git submodule update --init
- Install an editable version of tdl with this command:
pip install --editable . --verbose