Changes between Version 2 and Version 3 of pygame_touchpad


Ignore:
Timestamp:
Jan 14, 2012, 1:38:31 AM (12 years ago)
Author:
Martin Kolman
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • pygame_touchpad

    v2 v3  
    11= !PyGame on the HP Touchpad tablet =
    22This is a short guide on how to install Python and !PyGame on the WebOS based HP Touchpad tablet. The Python and PyGame porting work and WebOS bindings were done by '''THP''' and are available from his [http://thp.io/2011/webos/ WebOS page].
     3
     4== Prerequisites ==
     5Download the Python and PyGame binaries from THPs WebOS hacks website.
     6
     7== Start script ==
     8I've made a short startup script that makes it possible to just unpack the binaries to a random folder and use Python & PyGame without the need to install anything to system wide directories.
     9
     10{{{
     11#!/bin/bash
     12
     13## A setup and demonstration script for PyGame
     14## on the HP Touchpad WebOS tablet
     15
     16## path to the Python runtime
     17PY_PATH="/media/internal/pygame_test/python"
     18export PY_PATH
     19
     20## path to the Pygame runtime/library
     21PYGAME_PATH="/media/internal/pygame_test/"
     22
     23## add the Python runtime to the system path
     24PATH=${PY_PATH}/bin:$PATH
     25export PATH
     26
     27## add the Python runtime to the system library path
     28LD_LIBRARY_PATH=${PY_PATH}/lib:$LD_LIBRARY_PATH
     29export LD_LIBRARY_PATH
     30
     31## add Pygame to the Python path
     32PYTHONPATH=${PYGAME_PATH}:$PYTHONPATH
     33export PYTHONPATH
     34
     35##
     36## the environment should now be ready for running
     37## Python applications using PyGame
     38##
     39
     40## start the example application
     41cd tts
     42python main.py
     43}}}
     44
     45Just dump this script to a file called for example ''start.sh'' (or download start.sh) and run it with:
     46{{{
     47sh start.sh
     48}}}