Former-commit-id:2b462d8665
[formerly133dc97f67
] [formerlya02aeb236c
] [formerlya02aeb236c
[formerly9f19e3f712
]] [formerly2b462d8665
[formerly133dc97f67
] [formerlya02aeb236c
] [formerlya02aeb236c
[formerly9f19e3f712
]] [formerly06a8b51d6d
[formerlya02aeb236c
[formerly9f19e3f712
] [formerly06a8b51d6d
[formerly 64fa9254b946eae7e61bbc3f513b7c3696c4f54f]]]]] Former-commit-id:06a8b51d6d
Former-commit-id:2c3569dd39
[formerly9bb8decbcf
] [formerly8e80217e59
] [formerlye2ecdcfe33
[formerly377dcd10b9
] [formerly8e80217e59
[formerly3360eb6c5f
]]] Former-commit-id:e2ecdcfe33
[formerly377dcd10b9
] Former-commit-id:e2ecdcfe33
Former-commit-id:7dbd17a5aa
24 lines
625 B
Python
24 lines
625 B
Python
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])
|