Skip to content

Building

Justin W. Flory edited this page Apr 25, 2016 · 6 revisions

This page has detailed instructions on how to compile, build, and run PyCut. This could be for either a personal device or for an XO laptop.

Getting started

PyCut is dependent on the Pygame package. You can install the package in the following ways.

CentOS / Red Hat-based distributions

Most XOs are based off an older version of Fedora. If you are using an XO, this command should work for you in a terminal.

$ sudo yum install pygame

Fedora

$ sudo dnf install pygame

Debian / Ubuntu / apt-based distributions

$ sudo apt-get install python-pygame

Once Pygame is installed, you will be able to build PyCut.

Installation

Linux

There isn't really a way to "install" PyCut on a Linux workstation because the application is designed to be integrated with the Sugar desktop environment. However, you should be able to run the game by executing the main Python class.

$ ./PyCut.py

Otherwise, if you want to distribute the game onto a regular computer, run this one.

$ ./setup.py dist

On an XO

$ ./setup.py genpot $ ./setup.py build $ ./setup.py install

If you want to distribute the game onto another XO, execute this command.

$ ./setup.py dist_xo

Clone this wiki locally