-
-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathmeta.yaml
272 lines (253 loc) · 8.28 KB
/
meta.yaml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
{% set version = "9.2.6" %}
{% set build = 21 %}
{% set minor_version = ".".join(version.split(".")[:2]) %}
{% set build = build + 100 %} # [build_variant == "osmesa"]
{% set build = build + 200 %} # [build_variant == "qt"]
# typically, osmesa is selected by installing or not installing
# mesalib, but it could also be selected via the build string:
# `vtk * osmesa*` for osmesa
# `vtk * egl*` for egl
# `vtk * qt-main*` for qt-main
{% set build_string = '{}_py{}h{}_{}'.format(build_variant, CONDA_PY, PKG_HASH, build) %}
# The 'build: string: ...' needs to be set in each output and the top-level
# otherwise it won't be correct in the final build.
package:
name: vtk
version: {{ version }}
source:
url: http://www.vtk.org/files/release/{{ minor_version }}/VTK-{{ version }}.tar.gz
sha256: 06fc8d49c4e56f498c40fcb38a563ed8d4ec31358d0101e8988f0bb4d539dd12
patches:
- fix-threads-windows.patch # [win]
# https://github.com/conda-forge/vtk-feedstock/pull/282
# https://gitlab.kitware.com/vtk/vtk/-/issues/18365#note_1079278
# https://gitlab.kitware.com/vtk/vtk/-/merge_requests/9987
- patches/9987_try_except_python_import.patch # [not win]
build:
number: {{ build }}
string: {{ build_string }}
outputs:
- name: vtk-base
build:
string: {{ build_string }}
script: ${RECIPE_DIR}/build-base.sh # [not win]
script: "%RECIPE_DIR%\\bld-base.bat" # [win]
ignore_run_exports_from:
- ffmpeg # [not win]
run_exports:
- {{ pin_subpackage('vtk-base', max_pin='x.x.x') }}
track_features:
- vtk-egl # [build_variant == "egl"]
- vtk-osmesa # [build_variant == "osmesa"]
features:
- mesalib # [build_variant == "osmesa"]
requirements:
build:
- {{ compiler("cxx") }}
- {{ compiler('fortran') }} # [build_variant != "qt"]
- sysroot_linux-64 2.17 # [build_variant == "osmesa"]
- cmake
- ninja
- python # [build_platform != target_platform]
- cross-python_{{ target_platform }} # [build_platform != target_platform]
- {{ cdt('libselinux') }} # [linux and build_variant != "osmesa"]
- {{ cdt('mesa-libgl-devel') }} # [linux and build_variant != "osmesa"]
- {{ cdt('mesa-dri-drivers') }} # [linux and build_variant != "osmesa"]
- {{ cdt('libglvnd-egl') }} # [build_variant == "egl" and cdt_name == "cos7"]
- {{ cdt('mesa-libegl-devel') }} # [build_variant == "egl"]
- {{ cdt('mesa-libgbm') }} # [build_variant == "egl"]
host:
- python
- zlib
- freetype
- hdf5
- hdf5 * nompi_*
- libxml2
- libpng
- libjpeg-turbo
- libtiff
- jsoncpp
- expat
- expat <2.6 # https://gitlab.kitware.com/vtk/vtk/-/issues/19258
- tbb
- tbb-devel
# temporary pin: mesalib 24 fails
- mesalib >=21.0,<24 # [build_variant == "osmesa"]
- libnetcdf
- libnetcdf * nompi_*
- lz4-c
- xorg-libxt # [linux]
# These packages are not CDT to help with compat with other builds
# (e.g., tensorflow, qt-main), e.g.
# https://github.com/conda-forge/qt-main-feedstock/blob/2b166b35e9e1a2d897640ac28ae4b00491d9e310/recipe/meta.yaml#L134-L138
- libxcb # [linux and build_variant != "osmesa"]
- xorg-libxau # [linux and build_variant != "osmesa"]
- libuuid # [linux and build_variant != "osmesa"]
- xorg-libxext # [linux and build_variant != "osmesa"]
- xorg-libxfixes # [linux and build_variant != "osmesa"]
- xorg-libxxf86vm # [linux and build_variant != "osmesa"]
- xorg-libxdamage # [linux and build_variant != "osmesa"]
- xorg-libsm # [linux and build_variant != "osmesa"]
- xorg-libice # [linux and build_variant != "osmesa"]
- xorg-libx11 # [linux and build_variant != "osmesa"]
- xorg-xf86vidmodeproto # [linux and build_variant != "osmesa"]
- libboost-headers
- tk # [not win and (build_variant == "qt")]
- ffmpeg
- utfcpp
- eigen
- double-conversion
- pugixml
- glew # [build_variant == "qt"]
- libogg
- libtheora
- nlohmann_json
- proj
- loguru
- sqlite
- gl2ps
- pugixml
- qt-main # [not ppc64le and (build_variant == "qt")]
run:
- python
- zlib
- freetype
- hdf5
- libxml2
- libpng
- libjpeg-turbo
- libtiff
- jsoncpp
- expat
# expat run_exports accepts minor revisions
# but vtk is incompatible with 2.6: https://gitlab.kitware.com/vtk/vtk/-/issues/19258
- libexpat <2.6
- tbb
- mesalib >=21.0 # [build_variant == "osmesa"]
- libnetcdf
- lz4-c
- xorg-libxt # [linux]
- tk # [not win and (build_variant == "qt")]
- utfcpp
- eigen
- double-conversion
- pugixml
- glew # [build_variant == "qt"]
- libogg
- libtheora
- nlohmann_json
- proj
- loguru
- sqlite
- gl2ps
- pugixml
- tbb-devel
- numpy
- wslink
run_constrained:
# Paraview bundles its own VTK that has conflicting Python vtkmodules
- paraview ==9999999999
test:
imports:
- vtk
- vtk.vtkChartsCore
- vtk.vtkCommonCore
- vtk.vtkFiltersCore
- vtk.vtkFiltersGeneric
- vtk.vtkGeovisCore
- vtk.vtkFiltersHybrid
- vtk.vtkIOCore
- vtk.vtkImagingCore
- vtk.vtkInfovisCore
- vtk.vtkRenderingCore
- vtk.vtkViewsCore
- vtk.vtkRenderingVolume
- vtk.vtkInteractionWidgets
- vtk.vtkWebGLExporter
- vtk.tk.vtkTkRenderWidget # [not win and (build_variant == "qt")]
- vtkmodules
- vtkmodules.vtkChartsCore
- vtkmodules.vtkCommonCore
- vtkmodules.vtkFiltersCore
- vtkmodules.vtkFiltersGeneric
- vtkmodules.vtkGeovisCore
- vtkmodules.vtkFiltersHybrid
- vtkmodules.vtkIOCore
- vtkmodules.vtkImagingCore
- vtkmodules.vtkInfovisCore
- vtkmodules.vtkRenderingCore
- vtkmodules.vtkViewsCore
- vtkmodules.vtkRenderingVolume
- vtkmodules.vtkInteractionWidgets
- vtkmodules.vtkWebCore
- vtkmodules.web
- vtkmodules.web.utils
requires:
- pip
- setuptools
commands:
- pip check
- name: vtk-io-ffmpeg
build:
string: {{ build_string }}
script: ${RECIPE_DIR}/build-io-ffmpeg.sh # [not win]
skip: true # [win]
run_exports:
- {{ pin_subpackage('vtk-io-ffmpeg', max_pin='x.x.x') }}
requirements:
build: []
host:
# We use ffmpeg here in the host section so that conda build
# uses the global pinnings and ensures ffmpeg compatibility.
- ffmpeg
run:
- {{ pin_subpackage("vtk-base", exact=True) }}
- ffmpeg
test:
requires:
- pip
- setuptools
imports:
- vtk.vtkIOFFMPEG
- name: vtk
build:
string: {{ build_string }}
run_exports:
- {{ pin_subpackage('vtk-base', max_pin='x.x.x') }}
requirements:
build: []
run:
- {{ pin_subpackage("vtk-base", exact=True) }}
- {{ pin_subpackage("vtk-io-ffmpeg", exact=True) }} # [not win]
test:
requires:
- pip
- setuptools
imports:
- vtk
- vtk.vtkIOFFMPEG # [not win]
commands:
- python test_vtk.py
about:
home: http://www.vtk.org/
license: BSD-3-Clause
license_file: Copyright.txt
summary: >
The Visualization Toolkit (VTK) is an open-source, freely available software system for 3D computer graphics, modeling, image processing, volume rendering, scientific visualization, and information visualization.
dev_url: https://gitlab.kitware.com/vtk/vtk
doc_url: https://vtk.org/documentation
extra:
recipe-maintainers:
- Maxyme
- ccordoba12
- grlee77
- msarahan
- patricksnape
- dfroger
- tadeu
- marcelotrevisani
- downiec
- jasonb5
- matthiasdiener
- basnijholt
- Tobias-Fischer