File: setup.py

package info (click to toggle)
eikazo 0.5.2-7
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 1,136 kB
  • ctags: 859
  • sloc: python: 5,484; ansic: 667; makefile: 53
file content (39 lines) | stat: -rw-r--r-- 1,363 bytes parent folder | download | duplicates (3)
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
from distutils.core import setup, Extension
import os

dir = os.path.split(__file__)[0]
if dir:
    os.chdir(dir)

mofiles = []
for dir in os.listdir('Eikazo/mo'):
    mf = os.path.join('mo', dir, 'LC_MESSAGES', '*.mo')
    mofiles.append(mf)


setup(name='Eikazo',
           version=open('Eikazo/version.txt').read().strip(),
           author='Abel Deuring',
           author_email='adeuring@gmx.net',
           license = 'GPL',
           packages=['Eikazo', 
                     'Eikazo/output',
                     'Eikazo/devices',
                     'Eikazo/postprocessing',
                    ],
           package_data={'Eikazo': ['version.txt',
                                     'doc/*.rst', 
                                     'doc/*.html',
                                     'doc/*.css',
                                     'doc/images/*.png'] + mofiles},
           scripts=['eikazo'],
           ext_modules = [Extension('_meanFilter',
                                    ['cext/MeanFilter.c'],
                                    extra_compile_args=['-Wall'],
                                   ),
                          Extension('otsu',
                                    ['cext/Otsu.c'],
                                    extra_compile_args=['-Wall'],
                                   ),
                         ]
     )