This repository has been archived by the owner on Aug 19, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathmeta.yaml
572 lines (547 loc) · 21.2 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
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
{% set version = "6.0.0" %} # PEP 386
{% set source_version = version %}
{% set base_version = version %}
{% set number = "2" %}
{% set cuda_enabled = cuda_compiler_version is not undefined and cuda_compiler_version == '11.0' %}
{% set build_ext_version = "1.0.0" %}
{% set build_ext = "cuda" if cuda_enabled else "cpu" %}
{% set build_string = "h{}_{}".format(PKG_HASH, number) %}
{% set build_string_ext = "{}_{}".format(build_string, build_ext) %}
{% set py_build_string_ext = "py{}{}_{}".format(CONDA_PY, build_string, build_ext) %}
{% set py_build_string = "py{}{}".format(CONDA_PY, build_string) %}
{% set install_base = "opt/heavyai" %}
{% set arrow_version = "7.*" %}
{% set arrow_proc_version = "3.*" %}
{% set pythrift_version = "0.16.*" %}
{% set thrift_version = "0.16.*" %}
# heavydb 6.0.0 is not LLVM 12 ready
{% set llvm_version = "11" %}
package:
name: heavydb-ext
version: {{ version }}
source:
url: https://github.com/heavyai/heavydb/archive/v{{ source_version }}.tar.gz
sha256: a36d91227135e9ec8641b5f46e80927aaafce117f3446933dd7f392c9659996e
patches:
- 0003-Fix-HeavyDBE-build.patch
- 0004-Fix-Windows-build.patch # [win]
build:
number: {{ number }}
skip: true # [cuda_compiler_version not in (undefined, "None", "11.0")]
outputs:
- name: heavydb-common
version: {{ version }}
script: build-heavydb.sh # [linux64]
script: build-heavydb-common.bat # [win]
build:
string: {{ build_string }}
# cpu-only heavydb-common for cuda is required only for
# building cuda-enabled heavydb
skip: true # [cuda_compiler_version not in (undefined, "None", "11.0")]
skip: true # [osx]
skip: true # [win and cuda_compiler_version != "None"]
run_exports:
- {{ pin_subpackage('heavydb-common', max_pin='x.x.x') }}
ignore_run_exports:
- arrow-cpp {{ arrow_version }}
- blosc
- double-conversion
- fmt
- geos
- glog
- libarchive
- libgdal
- libllvm{{ llvm_version }}
- libpng
- librdkafka
- libstdcxx-ng
- libthrift
requirements:
build:
# c compiler is specified here to get run constraint pins correct, presumably...
- {{ compiler('c') }}
# go required for ThirdParty/generate_cert
- {{ compiler('cgo') }}
- {{ compiler('cxx') }}
- clangdev {{ llvm_version }}
# clang++ is used for generating the bytecodes of extension functions
- clangxx {{ llvm_version }}
- cmake
- llvmdev {{ llvm_version }}
- ninja
- maven
host:
# heavydb-common does not depend on build_ext, arrow-cpp
# (and other dependencies) is required just for the presence
# so that one could run cmake for generating *.bc, and other
# common data files.
- arrow-cpp ={{ arrow_version }}=*cpu
- bisonpp # [unix]
- blosc
- boost-cpp
- clangdev {{ llvm_version }}
- double-conversion
- flex # [unix]
- fmt
- geos
- glog
- llvmdev {{ llvm_version }}
- llvm {{ llvm_version }}
- libarchive
- libevent # [win]
- libgdal
- libpng
- librdkafka
- tbb # [win]
- tbb-devel # [win]
- thrift-cpp {{ thrift_version }}
- winflexbison # [win]
test:
commands:
# Test installation
# doc
- test -f ${PREFIX}/share/doc/heavyai/LICENSE.md # [unix]
- if not exist %PREFIX%\share\doc\heavyai\LICENSE.md exit 1 # [win]
# data
- test -d ${PREFIX}/{{ install_base }}/ThirdParty/gdal-data # [unix]
- if not exist %PREFIX%\ThirdParty\gdal-data exit 1 # [win]
# thrift
- test -f ${PREFIX}/{{ install_base }}/completion_hints.thrift # [unix]
- test -f ${PREFIX}/{{ install_base }}/heavy.thrift # [unix]
- test -f ${PREFIX}/{{ install_base }}/common.thrift # [unix]
- test -f ${PREFIX}/{{ install_base }}/QueryEngine/serialized_result_set.thrift # [unix]
- test -f ${PREFIX}/{{ install_base }}/QueryEngine/extension_functions.thrift # [unix]
- if not exist %PREFIX%\completion_hints.thrift exit 1 # [win]
- if not exist %PREFIX%\heavy.thrift exit 1 # [win]
- if not exist %PREFIX%\common.thrift exit 1 # [win]
- if not exist %PREFIX%\QueryEngine/serialized_result_set.thrift exit 1 # [win]
- if not exist %PREFIX%\QueryEngine/extension_functions.thrift exit 1 # [win]
# includes
- test -f ${PREFIX}/{{ install_base }}/Shared/funcannotations.h # [unix]
- test -f ${PREFIX}/{{ install_base }}/Shared/InlineNullValues.h # [unix]
- test -f ${PREFIX}/{{ install_base }}/Logger/Logger.h # [unix]
- if not exist %PREFIX%\Shared\funcannotations.h exit 1 # [win]
- if not exist %PREFIX%\Shared\InlineNullValues.h exit 1 # [win]
- if not exist %PREFIX%\Logger\Logger.h exit 1 # [win]
# QE
- test -f ${PREFIX}/{{ install_base }}/QueryEngine/heavydbTypes.h # [unix]
- test -f ${PREFIX}/{{ install_base }}/QueryEngine/RuntimeFunctions.bc # [unix]
- test -f ${PREFIX}/{{ install_base }}/QueryEngine/GeosRuntime.bc # [unix]
- test -f ${PREFIX}/{{ install_base }}/QueryEngine/ExtensionFunctions.ast # [unix]
- if not exist %PREFIX%\QueryEngine\heavydbTypes.h exit 1 # [win]
- if not exist %PREFIX%\QueryEngine\RuntimeFunctions.bc exit 1 # [win]
- if not exist %PREFIX%\QueryEngine\GeosRuntime.bc exit 1 # [win]
- if not exist %PREFIX%\QueryEngine\ExtensionFunctions.ast exit 1 # [win]
# jar
- test -f ${PREFIX}/{{ install_base }}/bin/heavyai-utility-{{ base_version }}.jar # [unix]
- test -f ${PREFIX}/{{ install_base }}/bin/heavyai-jdbc-{{ base_version }}.jar # [unix]
- test -f ${PREFIX}/{{ install_base }}/bin/calcite-1.0-SNAPSHOT-jar-with-dependencies.jar # [unix]
- if not exist %PREFIX%\bin\heavyai-utility-{{ base_version }}.jar exit 1 # [win]
- if not exist %PREFIX%\bin\heavyai-jdbc-{{ base_version }}.jar exit 1 # [win]
- if not exist %PREFIX%\bin\calcite-1.0-SNAPSHOT-jar-with-dependencies.jar exit 1 # [win]
# Unspecified
# startheavy and insert_sample_data are bash scripts
- test -f ${PREFIX}/{{ install_base }}/bin/startheavy # [unix]
- test -f ${PREFIX}/{{ install_base }}/bin/heavydb_insert_sample_data # [unix]
#
- test -f ${PREFIX}/{{ install_base }}/bin/generate_cert # [unix]
- if not exist %PREFIX%\bin\generate_cert exit 1 # [win]
- name: heavydb
version: {{ version }}
script: build-heavydb.sh # [linux64]
script: build-heavydb.bat # [win]
build:
string: {{ build_string_ext }}
skip: true # [cuda_compiler_version not in (undefined, "None", "11.0")]
skip: true # [osx]
skip: true # [win and cuda_compiler_version != "None"]
missing_dso_whitelist:
- '*/libcuda.*' # [cuda_compiler_version not in (undefined, "None")]
track_features:
{{ "- arrow-cuda" if cuda_enabled else "" }}
ignore_run_exports:
- cudatoolkit # [cuda_compiler_version not in (undefined, "None")]
- fmt
- gflags
- glog
- libclang-cpp
- libkml
- ncurses
- openldap
- zlib
run_exports:
- {{ pin_subpackage('heavydb', max_pin='x.x.x') }}
requirements:
build:
# c compiler is specified here to get run constraint pins correct, presumably..
- {{ compiler('c') }}
- {{ compiler('cgo') }}
- {{ compiler('cxx') }}
- {{ compiler("cuda") }} # [cuda_compiler_version not in (undefined, "None")]
- clangdev {{ llvm_version }}
# clang++ is used for generating the bytecodes of extension functions
- clangxx {{ llvm_version }}
- cmake
- llvmdev {{ llvm_version }}
- make
- ninja
- maven
host:
- arrow-cpp ={{ arrow_version }}=*{{ build_ext }}
- bisonpp # [unix]
- blosc
- boost-cpp
- clangdev {{ llvm_version }}
- double-conversion
- flex # [unix]
- fmt
- gflags
- glog
- llvmdev {{ llvm_version }}
- llvm {{ llvm_version }}
- libarchive
- libevent # [win]
- libgdal
- libkml
- libpng
- librdkafka
- ncurses # [unix]
- openldap # [unix]
# Workaround https://github.com/mamba-org/boa/issues/119 :
- openssl 1.1.1*
- snappy
- tbb
- tbb-devel
- thrift-cpp {{ thrift_version }}
- winflexbison # [win]
run:
- arrow-cpp-proc {{ arrow_proc_version }} {{ build_ext }}
- boost-cpp
- bzip2
# omnscidb Load-time UDF support calls clang++
- gxx_{{ target_platform }} # [not win]
- libclang-cpp {{ llvm_version }}
- ncurses # [not win]
- openjdk 8.*
- xz
- zlib
- {{ pin_subpackage('heavydb-common', max_pin='x.x.x') }}
run_constrained:
- arrow-cpp-proc {{ arrow_proc_version }} {{ build_ext }}
- cudatoolkit >=11.0 # [cuda_compiler_version not in (undefined, "None")]
test:
commands:
# binary
- test -f ${PREFIX}/{{ install_base }}/bin/heavydb # [unix]
- test -f ${PREFIX}/{{ install_base }}/bin/initheavy # [unix]
- test -f ${PREFIX}/{{ install_base }}/bin/heavysql # [unix]
- test -f ${PREFIX}/{{ install_base }}/bin/KafkaImporter # [unix]
- test -f ${PREFIX}/{{ install_base }}/bin/StreamImporter # [unix]
- if not exist %PREFIX%\bin\heavydb.exe exit 1 # [win]
- if not exist %PREFIX%\bin\initheavy.exe exit 1 # [win]
- if not exist %PREFIX%\bin\heavysql.exe exit 1 # [win]
# Verify the activation scripts are in-place.
{% for state in ["activate", "deactivate"] %}
- test -f "${PREFIX}/etc/conda/{{ state }}.d/{{ PKG_NAME }}_{{ state }}.sh" # [unix]
{% endfor %}
# Try using the activation scripts.
- |
if [[ -x "$(command -v heavysql)" ]] # [unix]
then # [unix]
echo "Found heavysql in PATH" # [unix]
else # [unix]
echo "heavysql not found in PATH(=$PATH)" && exit 1 # [unix]
fi # [unix]
source ${PREFIX}/etc/conda/deactivate.d/{{ PKG_NAME }}_deactivate.sh # [unix]
if [[ -x "$(command -v heavysql)" ]] # [unix]
then # [unix]
echo "Unexpectedly found heavysql in PATH(=$PATH) after deactivation" && exit 1 # [unix]
else # [unix]
echo "heavysql not in PATH after deactivation" # [unix]
fi # [unix]
source ${PREFIX}/etc/conda/activate.d/{{ PKG_NAME }}_activate.sh # [unix]
# Test installation
- heavysql -v # [unix]
- which initheavy # [unix]
- which heavydb # [unix]
- heavysql.exe -v # [win]
- |
if [ -x "$(command -v nvidia-smi)" ]; then # [unix and cuda_compiler_version not in (undefined, "None")]
mkdir data && initheavy data # [unix and cuda_compiler_version not in (undefined, "None")]
heavydb --version # [unix and cuda_compiler_version not in (undefined, "None")]
rm -rf data # [unix and cuda_compiler_version not in (undefined, "None")]
fi # [unix and cuda_compiler_version not in (undefined, "None")]
- test -f ${PREFIX}/{{ install_base }}/QueryEngine/cuda_mapd_rt.fatbin # [unix and cuda_compiler_version not in (undefined, "None")]
- test -f ${PREFIX}/{{ install_base }}/QueryEngine/CudaTableFunctions.a # [unix and cuda_compiler_version not in (undefined, "None")]
# these are provided by heavydb-common package:
- which heavydb_insert_sample_data # [unix]
- which startheavy # [unix]
about:
home: https://heavy.ai
license: Apache-2.0
license_family: APACHE
license_file: LICENSE.md
summary: The HeavyDB database
description: |
HeavyDB is an in-memory, column store, SQL relational database
that was designed from the ground up to run on GPUs.
This recipe provides both CUDA enabled and CUDA disabled heavydb
packages.
doc_url: https://docs.heavy.ai/
dev_url: https://github.com/heavyai/heavydb
- name: pyheavydb
version: {{ version }}
build:
skip: true # [cuda_compiler_version in ("11.0",)]
noarch: python
script: python -m pip install -vv --no-deps python/.
run_exports:
- {{ pin_subpackage('pyheavydb', max_pin='x.x.x') }}
requirements:
host:
- pip
- python >=3.7
- flit-core
run:
- python >=3.7
- importlib_metadata
- packaging
- numpy >=1.16
- thrift {{ pythrift_version }}
- sqlalchemy >=1.3
- requests >=2.23.0
about:
home: https://github.com/heavyai/heavydb
license: Apache-2.0
license_family: Apache
license_file: ./python/LICENSE.md
summary: A python DB API 2 compatible client for HeavyDB (formerly OmniSci and MapD).
description: |
A python DB API 2 compatible client HeavyDB (formerly OmniSci and MapD).
doc_url: https://pyheavydb.readthedocs.io
dev_url: https://github.com/heavyai/heavydb
test:
imports:
- heavydb
commands:
- pip check
requires:
- pip
- name: heavydbe
version: {{ version }}
script: build-heavydb.sh
build:
string: {{ build_string_ext }}
skip: true # [cuda_compiler_version not in (undefined, "None", "11.0") or not linux64]
skip: true
missing_dso_whitelist:
- '*/libcuda.*' # [cuda_compiler_version not in (undefined, "None")]
track_features:
{{ "- arrow-cuda" if cuda_enabled else "" }}
ignore_run_exports:
- cudatoolkit # [cuda_compiler_version not in (undefined, "None")]
- fmt
- glog
- libclang-cpp
- librdkafka
- ncurses
- zlib
rpaths:
- lib/
# fixes "not found" in `ldd $PREFIX/lib/libDBEngine.so` output
- {{ install_base }}/lib
run_exports:
- {{ pin_subpackage('heavydbe', max_pin='x.x.x') }}
requirements:
build:
# c compiler is specified here to get run constraint pins correct, presumably..
- {{ compiler('c') }}
- {{ compiler('cgo') }}
- {{ compiler('cxx') }}
- {{ compiler("cuda") }} # [cuda_compiler_version not in (undefined, "None")]
- clangdev {{ llvm_version }}
# clang++ is used for generating the bytecodes of extension functions
- clangxx {{ llvm_version }}
- cmake
- llvmdev {{ llvm_version }}
- make
- ninja
- maven
host:
- arrow-cpp ={{ arrow_version }}=*{{ build_ext }}
- bisonpp
- blosc
- boost-cpp
- clangdev {{ llvm_version }}
- double-conversion
- flex
- fmt
- glog
- llvmdev {{ llvm_version }}
- llvm {{ llvm_version }}
- libarchive
- libgdal
- libpng
- librdkafka
- tbb
- tbb-devel
- thrift-cpp {{ thrift_version }}
run:
- arrow-cpp-proc {{ arrow_proc_version }} {{ build_ext }}
- boost-cpp
- bzip2
# omnscidb Load-time UDF support calls clang++
- gxx_{{ target_platform }}
- {{ pin_compatible('libclang-cpp', max_pin='x.x') }}
- ncurses
- openjdk 8.*
- xz
- zlib
- {{ pin_subpackage('heavydb-common', max_pin='x.x.x') }}
run_constrained:
- arrow-cpp-proc {{ arrow_proc_version }} {{ build_ext }}
- cudatoolkit >=11.0 # [cuda_compiler_version not in (undefined, "None")]
test:
commands:
# Test installation
- test -f ${PREFIX}/lib/libDBEngine.so
# Verify the activation scripts are in-place.
{% for state in ["activate", "deactivate"] %}
- test -f "${PREFIX}/etc/conda/{{ state }}.d/{{ PKG_NAME }}_{{ state }}.sh"
{% endfor %}
- |
source ${PREFIX}/etc/conda/activate.d/{{ PKG_NAME }}_activate.sh
test -n "${HEAVYAI_ROOT_PATH+x}"
ldd ${PREFIX}/lib/libDBEngine.so
about:
home: https://heavy.ai
license: Apache-2.0
license_family: APACHE
license_file: LICENSE.md
summary: The HeavyDB database
description: |
HeavyDB is an in-memory, column store, SQL relational database
that was designed from the ground up to run on GPUs.
doc_url: https://docs.heavy.ai/
dev_url: https://github.com/heavyai/heavydb
- name: pyheavydbe
version: {{ version }}
script: build-heavydb.sh
build:
string: {{ py_build_string_ext }}
skip: true # [cuda_compiler_version not in (undefined, "None", "11.0") or not linux64]
skip: true # temporarily skipping pyheavydbe build
missing_dso_whitelist:
- '*/libcuda.*' # [cuda_compiler_version not in (undefined, "None")]
track_features:
{{ "- arrow-cuda" if cuda_enabled else "" }}
ignore_run_exports:
- arrow-cpp {{ arrow_version }}
- blosc
- cudatoolkit # [cuda_compiler_version not in (undefined, "None")]
- double-conversion
- fmt
- glog
- libarchive
- libgdal
- libllvm{{ llvm_version }}
- libpng
- librdkafka
- libthrift {{ thrift_version }}
- pyarrow {{ arrow_version }}
- python
- tbb
run_exports:
- {{ pin_subpackage('pyheavydbe', max_pin='x.x.x') }}
requirements:
build:
# c compiler is specified here to get run constraint pins correct, presumably..
- {{ compiler('c') }}
- {{ compiler('cgo') }}
- {{ compiler('cxx') }}
- {{ compiler("cuda") }} # [cuda_compiler_version not in (undefined, "None")]
- clangdev {{ llvm_version }}
# clang++ is used for generating the bytecodes of extension functions
- clangxx {{ llvm_version }}
- cmake
- llvmdev {{ llvm_version }}
- make
- ninja
- maven
host:
- arrow-cpp ={{ arrow_version }}=*{{ build_ext }}
- bisonpp
- blosc
- boost-cpp
- clangdev {{ llvm_version }}
- cython
- double-conversion
- flex
- fmt
- glog
- llvmdev {{ llvm_version }}
- llvm {{ llvm_version }}
- libarchive
- libgdal
- libpng
- librdkafka
- numpy
- pip
- pyarrow ={{ arrow_version }}=*{{ build_ext }}
- python
- pytest
- tbb
- tbb-devel
- thrift-cpp {{ thrift_version }}
- {{ pin_subpackage('heavydbe', exact=True) }}
run:
- arrow-cpp-proc {{ arrow_proc_version }} {{ build_ext }}
- pyarrow ={{ arrow_version }}=*{{ build_ext }}
- python
- tbb4py
- {{ pin_subpackage('heavydbe', exact=True) }}
test:
requires:
- pytest
- numpy
- pandas
imports:
- heavydbe
source_files:
- Embedded/test/test_exceptions.py
commands:
- pytest -sv Embedded/test/test_exceptions.py
about:
home: https://heavy.ai
license: Apache-2.0
license_family: APACHE
license_file: LICENSE.md
summary: The HeavyDB database
description: |
HeavyDB is an in-memory, column store, SQL relational database
that was designed from the ground up to run on GPUs.
doc_url: https://docs.heavy.ai/
dev_url: https://github.com/heavyai/heavydb
about:
home: https://heavy.ai
license: Apache-2.0
license_family: APACHE
license_file: LICENSE.md
summary: The HeavyDB database
description: |
HeavyDB is an in-memory, column store, SQL relational database
that was designed from the ground up to run on GPUs.
This recipe provides the following packages:
heavydb-common CUDA-enabled heavydb, cpu and cuda builds
pyheavydb Python connector
heavydbe embedding library, cpu and cuda builds
pyheavydbe-embedded Python extension module
doc_url: https://docs.heavy.ai/
dev_url: https://github.com/heavyai/heavydb
extra:
recipe-maintainers:
- guilhermeleobas
- pearu
- tupui
- andrewseidl
- jclay