Source

pysdl-cffi / setup.py

Full commit
Leonard Ritter 693c7ab 
Leonard Ritter f2d5dab 
Leonard Ritter 693c7ab 




Leonard Ritter f2d5dab 



Leonard Ritter f04f6e5 

Leonard Ritter f2d5dab 
Leonard Ritter 693c7ab 










Leonard Ritter f2d5dab 


Leonard Ritter 693c7ab 





Leonard Ritter f2d5dab 
import os
import sys
from setuptools import setup

def read(fname):
    return open(os.path.join(os.path.dirname(__file__), fname)).read()

if sys.platform == 'linux2':
    dllname = 'libSDL2.so'
elif sys.platform == 'win32':
    dllname = 'SDL2.dll'
else:
    dllname = 'libSDL2.dylib'

setup(
    name = "pysdl-cffi",
    version = "0.1",
    author = "Leonard Ritter",
    author_email = "contact@leonard-ritter.com",
    description = ("CFFI-based Python bindings for SDL 2.0. Best used"
        " with PyPy."),
    license = "MIT",
    keywords = "sdl cffi pypy",
    url = "https://bitbucket.org/duangle/pysdl-cffi",
    packages=['sdl', 'testing'],
    package_data = {
        'sdl' : [dllname],
    },
    long_description=read('README'),
    classifiers=[
        "Development Status :: 3 - Alpha",
        "Topic :: Software Development :: Libraries :: Application Frameworks",
        "License :: OSI Approved :: MIT License",
    ],
)