Skip to content
David Ripton edited this page Nov 14, 2021 · 5 revisions

Before building Slugathon on Linux, you need to install the dependencies. This is easy because your distribution’s package manager probably has packages for all of them, but the exact names will vary by distribution.

You need a new enough version of your distribution that it comes with Python 3.8 or newer. Then you need to tell your package manager to install PyGI and PyGI-cairo and pip. Then you need to tell pip to install Twisted and trueskill and pytest.

  • Ubuntu (20.04+)
    o sudo apt install python3-gi python3-gi-cairo python3-pip
    o sudo pip3 install trueskill Twisted pytest black mypy

(I don’t have any other distributions handy right now. You may have to change apt to another package manager and the exact names of the packages will change, but it will be close. The pip part should be the same on every distribution.)

Once the prerequisites are installed, here’s how you build and install Slugathon itself:

  • cd ~/src (or wherever you prefer to check out source code)
  • git clone git://github.com/dripton/Slugathon.git
  • cd Slugathon
  • python3 ./setup.py build
  • sudo python3 ./setup.py install

Here’s how to run the unit tests:

  • cd slugathon
  • pytest

And here’s how to run the game:

  • vim ~/.slugathon/globalprefs/passwd (add yourname:yourpass)
  • slugathon-client
Clone this wiki locally