forked from glassechidna/zxing-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
32 lines (28 loc) · 898 Bytes
/
setup.py
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
import unittest
from os import walk
from os.path import join, splitext
from setuptools import Extension, setup
def test_suite():
test_loader = unittest.TestLoader()
test_suite = test_loader.discover('tests')
return test_suite
setup(name='ZXing',
version='1.0',
description='ZXing-cpp for Python',
author='Iurii Zolotko',
author_email='[email protected]',
url='https://github.com/yuriiz/zxing-cpp',
packages=[],
test_suite='setup.test_suite',
ext_modules=[Extension('zxing', [
'pyzxing.cpp',
'cli/src/ImageReaderSource.cpp',
'cli/src/jpgd.cpp',
'cli/src/lodepng.cpp',
] + [
join(path, f)
for path, _, files in walk(join('core', 'src'))
for f in files
if splitext(f)[-1] in ('.cpp', '.cc')
], include_dirs=[join('core', 'src')])]
)