scikit-image
89 строк · 2.1 Кб
1pyx_files = [
2['corner_cy', cython_gen],
3['censure_cy', cython_gen],
4['orb_cy', cython_gen],
5['_canny_cy', cython_gen],
6['_texture', cython_gen],
7['_hoghistogram', cython_gen],
8['_sift', cython_gen],
9['_cascade', cython_gen_cpp],
10['_haar', cython_gen_cpp]
11]
12
13foreach pyx_file: pyx_files
14py3.extension_module(pyx_file[0],
15pyx_file[1].process(pyx_file[0] + '.pyx'),
16c_args: cython_c_args,
17cpp_args: cython_cpp_args,
18include_directories: [incdir_numpy, '../_shared'],
19install: true,
20subdir: 'skimage/feature'
21)
22endforeach
23
24_brief_pythran = custom_target('_brief_pythran',
25output: ['brief_cy.cpp'],
26input: 'brief_pythran.py',
27command: [pythran, '-E', '@INPUT@', '-o', '@OUTPUT@']
28)
29
30py3.extension_module('brief_cy',
31[_brief_pythran],
32cpp_args: cpp_args_pythran,
33include_directories: [incdir_pythran, incdir_numpy],
34dependencies: [py3_dep],
35install: true,
36subdir: 'skimage/feature'
37)
38
39_hessian_det_appx_pythran = custom_target('_hessian_det_appx_pythran',
40output: ['_hessian_det_appx.cpp'],
41input: '_hessian_det_appx_pythran.py',
42command: [pythran, '-E', '@INPUT@', '-o', '@OUTPUT@']
43)
44
45py3.extension_module('_hessian_det_appx',
46[_hessian_det_appx_pythran],
47cpp_args: cpp_args_pythran,
48include_directories: [incdir_pythran, incdir_numpy],
49dependencies: [py3_dep],
50install: true,
51subdir: 'skimage/feature'
52)
53
54python_sources = [
55'__init__.py',
56'__init__.pyi',
57'_basic_features.py',
58'_canny.py',
59'_daisy.py',
60'_hog.py',
61'_orb_descriptor_positions.py',
62'blob.py',
63'brief.py',
64'censure.py',
65'corner.py',
66'_fisher_vector.py',
67'haar.py',
68'match.py',
69'orb.py',
70'peak.py',
71'sift.py',
72'template.py',
73'texture.py',
74'util.py',
75]
76
77py3.install_sources(
78python_sources,
79pure: false, # Will be installed next to binaries
80subdir: 'skimage/feature' # Folder relative to site-packages to install to
81)
82
83py3.install_sources(
84['orb_descriptor_positions.txt'],
85pure: false, # Will be installed next to binaries
86subdir: 'skimage/feature' # Folder relative to site-packages to install to
87)
88
89subdir('tests')
90