A cffi-based SDL wrapper that copies the pygame API.
Project description
# pygame_cffi
[![Build Status](https://img.shields.io/travis/CTPUG/pygame_cffi.svg)](https://travis-ci.org/CTPUG/pygame_cffi)
[![PyPI](https://img.shields.io/pypi/v/pygame_cffi.svg)](https://pypi-hypernode.com/pypi/pygame_cffi)
[![Windows Build status](https://ci.appveyor.com/api/projects/status/qsa3c9qfa8xt8j9i/branch/master?svg=true)](https://ci.appveyor.com/project/CTPUG/pygame-cffi/branch/master)
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.
[![Build Status](https://img.shields.io/travis/CTPUG/pygame_cffi.svg)](https://travis-ci.org/CTPUG/pygame_cffi)
[![PyPI](https://img.shields.io/pypi/v/pygame_cffi.svg)](https://pypi-hypernode.com/pypi/pygame_cffi)
[![Windows Build status](https://ci.appveyor.com/api/projects/status/qsa3c9qfa8xt8j9i/branch/master?svg=true)](https://ci.appveyor.com/project/CTPUG/pygame-cffi/branch/master)
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pygame_cffi-0.2.0.tar.gz
(422.4 kB
view hashes)
Built Distributions
Close
Hashes for pygame_cffi-0.2.0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2b04efe4523bd0a67ea4ada517f4a6ff9b984e241c9c4fa9379f42106f6ba4c |
|
MD5 | c9f17b6e6b0574de8ad47f424543c824 |
|
BLAKE2b-256 | 18d0245b719baec6b601d0f94b4ac29ba8589bb5b998fb268f6713ee3a9885d5 |
Close
Hashes for pygame_cffi-0.2.0-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f302a47fdb5ce474e85aeb8c5225e646a3143d43c1fbeaf1d62b130f460571d |
|
MD5 | 40dc32e33587dac631f5cfa098f5e8e6 |
|
BLAKE2b-256 | ea9498b9a202652f75bd7fefb4fc23d2772d45937d39425c75ebcee668798e37 |
Close
Hashes for pygame_cffi-0.2.0-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22ce059f0f425f885178ffce4afa95a8155362805336c78c92b96a7df431f240 |
|
MD5 | 9d92df6e22beb05b24f7ab607373cb8d |
|
BLAKE2b-256 | d7a2f05be2c58a113f65cbaf71a451e970912384bacaf4c73ca1113f0207570e |
Close
Hashes for pygame_cffi-0.2.0-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65fe387ad9c2b317744c5effd74a195acbe9595376cbdeaf7abaf6f867b19fa6 |
|
MD5 | 9c920c2309e0a9f776d351414c46083d |
|
BLAKE2b-256 | 15bbb3e44bc60a0e106d169ade6587dc8b2d62c7324a53bc020113de7c37aa72 |
Close
Hashes for pygame_cffi-0.2.0-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29a16379dc25db329b0906130dcaa0d1ce84851f7ca0db5294cb16af3670d468 |
|
MD5 | 215da79924d09551c1e0bd2d7bb39bff |
|
BLAKE2b-256 | 933cf7a3e535bf243a6aaeaf3659d6f7747729216af36778d6027db2ed19d08a |
Close
Hashes for pygame_cffi-0.2.0-cp27-cp27m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6659fff0e697b9f64dcf4b97b25521f6282600a3b4cb4f1ed45ffc8275aea1e2 |
|
MD5 | e86b3cf7af80d10553d01e461f26d29e |
|
BLAKE2b-256 | c31882c213ead36236803522e8363badc58068742f5d382216ed258685a05c2e |