Giter Site home page Giter Site logo

ajoubertza / pygame_cffi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ctpug/pygame_cffi

0.0 2.0 0.0 1.56 MB

A cffi-based SDL wrapper that copies the pygame API.

License: GNU Lesser General Public License v2.1

Python 82.95% Shell 0.17% C 16.27% Objective-C 0.49% PowerShell 0.13%

pygame_cffi's Introduction

pygame_cffi

Build Status PyPI Windows Build status

A cffi-based SDL wrapper that copies the pygame API.

We copy various code and API ideas from pygame, so we inherit pygame's LGPL v2.1, or later license.

Discussion

We have a Google Group: https://groups.google.com/forum/#!forum/pygame-cffi. Any pygame-cffi discussion welcome!

There is also the #pygame-cffi channel on irc.freenode.net

Installation

  1. Install the requirements listed below. On a Debian-based system, all requirements can be installed using sudo apt-get build-dep pygame (pygame_cffi requires most of the pygame dependencies).
  2. pip install pygame_cffi

Requirements

pygame_cffi requires a recent version of python-cffi to build (at least version 1.3.0).

  • libjpeg-dev
  • libpng-dev
  • libsdl1.2-dev
  • libsdl-image1.2-dev
  • libsdl-mixer1.2-dev
  • libsdl-ttf2.0-dev

Local Development

  1. Install dependencies (probably in a virtualenv)
  2. Run cffi_builders/build.py
  3. Hack

Running Tests

  • Upstream pygame unit tests: python -m test
  • Tests that are known to fail on pygame_cffi are marked as expected failures. To see these failures, pass the --expected-failures argument.
  • Conformance between pygame and pygame_cffi: See conformance/README
  • pygame_cffi functionality example apps are in the demos directory

Building on windows

To build on windows, you need to download the appropriate dependency libraries. The pygame project provides all the required libraries in a nicely bundled set, available from https://bitbucket.org/llindstrom/pygame/downloads/

For 32 bit machines, download the latest prebuilt-x86 zipfile and unzip it under the pygame_cffi directory.

For 64 bit machines, download the latest prebuild-x64 zipfile and unzip it under the pygame_cffi directory.

Then run python setup.py build to compile the modules.

pygame_cffi's People

Contributors

rizziepit avatar stefanor avatar drnlm avatar hodgestar avatar jerith avatar fijal avatar gertburger avatar pidelport avatar arigo avatar jcupitt avatar onpon4 avatar

Watchers

James Cloos avatar Anton Joubert avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.