File: setup.py

package info (click to toggle)
pygdchart2 0.beta1-3.4
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, lenny, squeeze, wheezy
  • size: 524 kB
  • ctags: 311
  • sloc: python: 1,268; ansic: 1,029; makefile: 11; sh: 1
file content (32 lines) | stat: -rw-r--r-- 1,567 bytes parent folder | download | duplicates (5)
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
from distutils.core import setup, Extension

GDCHART_PATH = "../gdchart0.11.4dev"
GD_PATH = "../gd-1.8.4"
setup(
            name="pygdchart",
            version="2.0 Beta",
            description="Python bindings to the GDChart library",
            author="Nullcube Pty Ltd",
            author_email="aldo@nullcube.com",
            url="http://www.nullcube.com",
            py_modules = ["gdchart"],
            ext_modules=[
                            Extension(
                                        "_gdchartc",
                                        ["_gdchartc.c"],
                                        include_dirs=[GDCHART_PATH],
                                        library_dirs=[
                                                            GD_PATH,
                                                            GDCHART_PATH,
                                                            "/usr/local/lib",
                                                            "/usr/X11R6/lib",
                                                            "/usr/lib"
                                                    ],
                                        define_macros=[
                                                            ("HAVE_LIBFREETYPE", 1),
                                                            ("HAVE_JPEG", 1),
                                                        ],
                                        libraries=["gdc", "gd", "png", "z", "jpeg", "freetype"]
                            )
                        ]
    )