Source

pysdl-cffi / setup.py

Diff from to
-
 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'
+
 setup(
     name = "pysdl-cffi",
     version = "0.1",
     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",
     ],
-)
+)