scikit-image

Форк
0
89 строк · 2.1 Кб
1
pyx_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

13
foreach pyx_file: pyx_files
14
  py3.extension_module(pyx_file[0],
15
    pyx_file[1].process(pyx_file[0] + '.pyx'),
16
    c_args: cython_c_args,
17
    cpp_args: cython_cpp_args,
18
    include_directories: [incdir_numpy, '../_shared'],
19
    install: true,
20
    subdir: 'skimage/feature'
21
  )
22
endforeach
23

24
_brief_pythran = custom_target('_brief_pythran',
25
  output: ['brief_cy.cpp'],
26
  input: 'brief_pythran.py',
27
  command: [pythran, '-E', '@INPUT@', '-o', '@OUTPUT@']
28
)
29

30
py3.extension_module('brief_cy',
31
  [_brief_pythran],
32
  cpp_args: cpp_args_pythran,
33
  include_directories: [incdir_pythran, incdir_numpy],
34
  dependencies: [py3_dep],
35
  install: true,
36
  subdir: 'skimage/feature'
37
)
38

39
_hessian_det_appx_pythran = custom_target('_hessian_det_appx_pythran',
40
  output: ['_hessian_det_appx.cpp'],
41
  input: '_hessian_det_appx_pythran.py',
42
  command: [pythran, '-E', '@INPUT@', '-o', '@OUTPUT@']
43
)
44

45
py3.extension_module('_hessian_det_appx',
46
  [_hessian_det_appx_pythran],
47
  cpp_args: cpp_args_pythran,
48
  include_directories: [incdir_pythran, incdir_numpy],
49
  dependencies: [py3_dep],
50
  install: true,
51
  subdir: 'skimage/feature'
52
)
53

54
python_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

77
py3.install_sources(
78
  python_sources,
79
  pure: false,             # Will be installed next to binaries
80
  subdir: 'skimage/feature'  # Folder relative to site-packages to install to
81
)
82

83
py3.install_sources(
84
  ['orb_descriptor_positions.txt'],
85
  pure: false,             # Will be installed next to binaries
86
  subdir: 'skimage/feature'  # Folder relative to site-packages to install to
87
)
88

89
subdir('tests')
90

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.