stupidpythonprojects/simongame/pyftgl/setup.py
2016-09-12 15:19:48 +02:00

73 lines
1.9 KiB
Python

#!/usr/bin/env python
from distutils.core import setup, Extension
__version__ = "0.5b"
__author__ = "Anders Dahnielson"
__doc__ = """Python FTGL binding
FTGL is a free, open source library to enable developers to use
arbitrary fonts in their OpenGL applications. Unlike other OpenGL font
libraries FTGL uses standard font file formats and the Freetype font
library to open the fonts. PyFTGL in turn wraps the functionality of
FTGL into a Python module so that it can be used in conjunction with
PyOpenGL."""
doclines = __doc__.split("\n")
##########################################################################
## FTGL module
module_ftgl_src = [
'ftgl.cpp',
]
module_ftgl_include_dirs = [
'/usr/include',
'/usr/include/freetype2',
]
module_ftgl_libs = [
'GLU',
'GL',
'freetype',
'z',
'ftgl',
'boost_python',
]
module_ftgl = Extension(
'FTGL',
module_ftgl_src,
include_dirs=module_ftgl_include_dirs,
libraries=module_ftgl_libs
)
##########################################################################
## setup
setup(
name = 'PyFTGL',
version = __version__,
author = __author__,
author_email = 'anders@dahnielson.com',
maintainer = __author__,
maintainer_email = 'anders@dahnielson.com',
url = 'http://code.google.com/p/pyftgl/',
description = doclines[0],
long_description = "\n".join(doclines[2:]),
download_url = 'http://code.google.com/p/pyftgl/downloads/list',
classifiers = [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Operating System :: POSIX',
'Programming Language :: C++',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
],
license = "GPLv2",
platforms = "POSIX",
ext_modules = [module_ftgl],
)