-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
72 lines (61 loc) · 1.88 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/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__,
maintainer = __author__,
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],
)