poly2tri/python/setup.py
2009-11-11 20:06:09 -05:00

44 lines
1008 B
Python

import sys
import os
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
# Usage: python setup.py build_ext --i
version = '0.01'
sourcefiles = ['engine/engine.pyx']
# Platform-dependent submodules
if sys.platform == 'win32':
# MS Windows
libs = ['glew32', 'glu32', 'glfw', 'opengl32']
elif sys.platform == 'darwin':
# Apple OSX
raise SystemError('OSX is unsupported in this version')
else:
# GNU/Linux, BSD, etc
libs = ['GLEW', 'GLU', 'glfw', 'GL']
mod_engine = Extension(
"engine",
sourcefiles,
libraries = libs,
language = 'c'
)
setup(
name = 'OpenMelee',
version = version,
description = 'A Star Control Clone',
author = 'Mason Green & Tom Novelli',
author_email = '',
maintainer = '',
maintainer_email = '',
url = 'http://openmelee.org/',
cmdclass = {'build_ext': build_ext},
ext_modules = [mod_engine],
)