-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsetup.py
More file actions
43 lines (39 loc) · 1.84 KB
/
setup.py
File metadata and controls
43 lines (39 loc) · 1.84 KB
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
40
41
42
43
#!/usr/bin/env python
"""
setup.py file for NBIS SWIG wrapper
"""
from setuptools import setup, Extension
NBIS_DIR='../install_dir/'
NBIS_INCLUDE_DIR=NBIS_DIR+'include/'
NBIS_LIB_DIR=NBIS_DIR+'lib/'
wsq_module = Extension('_wsq', ['wsq.i'], swig_opts=['-I'+NBIS_INCLUDE_DIR],
include_dirs=[NBIS_INCLUDE_DIR],
library_dirs=[NBIS_LIB_DIR],
libraries=['wsq', 'ioutil', 'fet', 'jpegl', 'util'],
)
nfiq_module = Extension('_nfiq', ['nfiq.i'], swig_opts=['-I'+NBIS_INCLUDE_DIR],
include_dirs=[NBIS_INCLUDE_DIR],
library_dirs=[NBIS_LIB_DIR],
libraries=['nfiq', 'mindtct', 'mlp', 'cblas', 'ioutil', 'util'],
)
lfs_module = Extension('_lfs', ['lfs.i'], swig_opts=['-I'+NBIS_INCLUDE_DIR],
include_dirs=[NBIS_INCLUDE_DIR],
library_dirs=[NBIS_LIB_DIR],
libraries=['mindtct', 'mlp', 'cblas', 'ioutil', 'util', 'an2k', 'ioutil', 'image', 'util', 'bozorth3'],
)
bozorth_module = Extension('_bozorth', ['bozorth.i'], swig_opts=['-I'+NBIS_INCLUDE_DIR],
include_dirs=[NBIS_INCLUDE_DIR],
library_dirs=[NBIS_LIB_DIR],
libraries=['bozorth3', 'mindtct', 'mlp', 'cblas', 'ioutil', 'util'],
)
setup (name = "pyNBIS",
use_scm_version=True,
setup_requires=['setuptools_scm'],
# version = '0.1',
description = """SIWG based Python wrapper for NBIS""",
# packages = ["pyNBIS"],
ext_modules = [wsq_module, nfiq_module, lfs_module, bozorth_module],
py_modules = ["wsq", "nfiq", "lfs", "bozorth"],
)