File: setup.py

package info (click to toggle)
python-imaging 1.1.7-2%2Bdeb6u2
  • links: PTS
  • area: main
  • in suites: squeeze-lts
  • size: 2,424 kB
  • ctags: 3,401
  • sloc: ansic: 19,470; python: 11,002; makefile: 111
file content (24 lines) | stat: -rw-r--r-- 625 bytes parent folder | download | duplicates (6)
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])