Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Imaging/Sane/setup.py
blob: 3837198ec94a0ca8697afff4f4c2cbe495cfa3db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from distutils.core import setup, Extension

PIL_BUILD_DIR   = '..'
PIL_IMAGING_DIR = PIL_BUILD_DIR+'/libImaging'

defs = []
try:
    import numarray
    defs.append(('WITH_NUMARRAY',None))
except ImportError:
    pass

sane = Extension('_sane',
                 include_dirs = [PIL_IMAGING_DIR],
                 libraries = ['sane'],
                 library_dirs = [PIL_IMAGING_DIR],
                 define_macros = defs,
                 sources = ['_sane.c'])

setup (name = 'pysane',
       version = '2.0',
       description = 'This is the pysane package',
       py_modules = ['sane'],
       ext_modules = [sane])