Skip to content

Commit 748f47b

Browse files
committed
break out libarrow-compute output
1 parent 6361873 commit 748f47b

File tree

3 files changed

+67
-4
lines changed

3 files changed

+67
-4
lines changed

recipe/install-libarrow.bat

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ if [%PKG_NAME%] == [libarrow] (
1111
move .\temp_prefix\lib\arrow_cuda.lib %LIBRARY_LIB% || true
1212
move .\temp_prefix\bin\arrow_cuda.dll %LIBRARY_BIN% || true
1313
copy .\temp_prefix\lib\pkgconfig\arrow.pc %LIBRARY_LIB%\pkgconfig
14-
copy .\temp_prefix\lib\pkgconfig\arrow-compute.pc %LIBRARY_LIB%\pkgconfig
1514
copy .\temp_prefix\lib\pkgconfig\arrow-csv.pc %LIBRARY_LIB%\pkgconfig
1615
copy .\temp_prefix\lib\pkgconfig\arrow-cuda.pc %LIBRARY_LIB%\pkgconfig || true
1716
copy .\temp_prefix\lib\pkgconfig\arrow-filesystem.pc %LIBRARY_LIB%\pkgconfig
@@ -33,6 +32,12 @@ if [%PKG_NAME%] == [libarrow] (
3332
copy .\temp_prefix\lib\pkgconfig\arrow-acero.pc %LIBRARY_LIB%\pkgconfig
3433
mkdir %LIBRARY_LIB%\cmake\ArrowAcero
3534
move .\temp_prefix\lib\cmake\ArrowAcero\* %LIBRARY_LIB%\cmake\ArrowAcero
35+
) else if [%PKG_NAME%] == [libarrow-compute] (
36+
move .\temp_prefix\lib\arrow_compute.lib %LIBRARY_LIB%
37+
move .\temp_prefix\bin\arrow_compute.dll %LIBRARY_BIN%
38+
copy .\temp_prefix\lib\pkgconfig\arrow-compute.pc %LIBRARY_LIB%\pkgconfig
39+
mkdir %LIBRARY_LIB%\cmake\ArrowCompute
40+
move .\temp_prefix\lib\cmake\ArrowCompute\* %LIBRARY_LIB%\cmake\ArrowCompute
3641
) else if [%PKG_NAME%] == [libarrow-dataset] (
3742
move .\temp_prefix\lib\arrow_dataset.lib %LIBRARY_LIB%
3843
move .\temp_prefix\bin\arrow_dataset.dll %LIBRARY_BIN%

recipe/install-libarrow.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ if [[ "${PKG_NAME}" == "libarrow" ]]; then
1111
cp -a ./temp_prefix/lib/libarrow.* $PREFIX/lib
1212
cp -a ./temp_prefix/lib/libarrow_cuda.* $PREFIX/lib || true
1313
cp ./temp_prefix/lib/pkgconfig/arrow.pc $PREFIX/lib/pkgconfig
14-
cp ./temp_prefix/lib/pkgconfig/arrow-compute.pc $PREFIX/lib/pkgconfig
1514
cp ./temp_prefix/lib/pkgconfig/arrow-csv.pc $PREFIX/lib/pkgconfig
1615
cp ./temp_prefix/lib/pkgconfig/arrow-cuda.pc $PREFIX/lib/pkgconfig || true
1716
cp ./temp_prefix/lib/pkgconfig/arrow-filesystem.pc $PREFIX/lib/pkgconfig
@@ -36,6 +35,11 @@ elif [[ "${PKG_NAME}" == "libarrow-acero" ]]; then
3635
cp -a ./temp_prefix/lib/libarrow_acero.* $PREFIX/lib
3736
cp ./temp_prefix/lib/pkgconfig/arrow-acero.pc $PREFIX/lib/pkgconfig
3837
cp -R ./temp_prefix/lib/cmake/ArrowAcero/. $PREFIX/lib/cmake/ArrowAcero
38+
elif [[ "${PKG_NAME}" == "libarrow-compute" ]]; then
39+
# only libarrow-compute
40+
cp -a ./temp_prefix/lib/libarrow_compute.* $PREFIX/lib
41+
cp ./temp_prefix/lib/pkgconfig/arrow-compute.pc $PREFIX/lib/pkgconfig
42+
cp -R ./temp_prefix/lib/cmake/ArrowCompute/. $PREFIX/lib/cmake/ArrowCompute
3943
elif [[ "${PKG_NAME}" == "libarrow-dataset" ]]; then
4044
# only libarrow-dataset
4145
cp -a ./temp_prefix/lib/libarrow_dataset.* $PREFIX/lib

recipe/meta.yaml

Lines changed: 56 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ outputs:
147147
host:
148148
- {{ pin_subpackage("libarrow", exact=True) }}
149149
- {{ pin_subpackage("libarrow-acero", exact=True) }}
150+
- {{ pin_subpackage("libarrow-compute", exact=True) }}
150151
- {{ pin_subpackage("libarrow-dataset", exact=True) }}
151152
- {{ pin_subpackage("libarrow-flight", exact=True) }}
152153
- {{ pin_subpackage("libarrow-flight-sql", exact=True) }}
@@ -158,6 +159,7 @@ outputs:
158159
run:
159160
- {{ pin_subpackage("libarrow", exact=True) }}
160161
- {{ pin_subpackage("libarrow-acero", exact=True) }}
162+
- {{ pin_subpackage("libarrow-compute", exact=True) }}
161163
- {{ pin_subpackage("libarrow-dataset", exact=True) }}
162164
- {{ pin_subpackage("libarrow-flight", exact=True) }}
163165
- {{ pin_subpackage("libarrow-flight-sql", exact=True) }}
@@ -230,10 +232,8 @@ outputs:
230232
- libgoogle-cloud-storage-devel
231233
- libopentelemetry-cpp # [unix]
232234
- libprotobuf
233-
- libutf8proc
234235
- lz4-c
235236
- orc
236-
- re2
237237
- snappy
238238
- zlib
239239
- zstd
@@ -322,11 +322,13 @@ outputs:
322322
- {{ compiler("cxx") }}
323323
host:
324324
- {{ pin_subpackage("libarrow", exact=True) }}
325+
- {{ pin_subpackage("libarrow-compute", exact=True) }}
325326
- libabseil # [osx]
326327
- libprotobuf # [osx]
327328
- libopentelemetry-cpp # [osx]
328329
run:
329330
- {{ pin_subpackage("libarrow", exact=True) }}
331+
- {{ pin_subpackage("libarrow-compute", exact=True) }}
330332
# run-constraints handled by libarrow, since we depend on it with exact=True
331333

332334
test:
@@ -352,6 +354,56 @@ outputs:
352354
- LICENSE.txt
353355
summary: C++ libraries for Apache Arrow Acero
354356

357+
- name: libarrow-compute
358+
script: install-libarrow.sh # [unix]
359+
script: install-libarrow.bat # [win]
360+
version: {{ version }}
361+
build:
362+
string: h{{ PKG_HASH }}_{{ PKG_BUILDNUM }}_{{ build_ext }}
363+
run_exports:
364+
- {{ pin_subpackage("libarrow-compute", max_pin="x.x") }}
365+
requirements:
366+
build:
367+
- cmake <4
368+
- ninja
369+
# for strong run-exports
370+
- {{ stdlib("c") }}
371+
- {{ compiler("c") }}
372+
- {{ compiler("cxx") }}
373+
host:
374+
- {{ pin_subpackage("libarrow", exact=True) }}
375+
- libabseil # [osx]
376+
- libopentelemetry-cpp # [osx]
377+
- libprotobuf # [osx]
378+
- libutf8proc
379+
- re2
380+
run:
381+
- {{ pin_subpackage("libarrow", exact=True) }}
382+
# run-constraints handled by libarrow, since we depend on it with exact=True
383+
384+
test:
385+
commands:
386+
# headers
387+
- test -f $PREFIX/include/arrow/compute/api.h # [unix]
388+
- if not exist %LIBRARY_INC%\arrow\compute\api.h exit 1 # [win]
389+
390+
# shared libraries
391+
- test -f $PREFIX/lib/libarrow_compute.so # [linux]
392+
- test -f $PREFIX/lib/libarrow_compute.dylib # [osx]
393+
- if not exist %LIBRARY_BIN%\arrow_compute.dll exit 1 # [win]
394+
- if not exist %LIBRARY_LIB%\arrow_compute.lib exit 1 # [win]
395+
396+
# absence of static libraries
397+
- test ! -f $PREFIX/lib/libarrow_compute.a # [unix]
398+
- if exist %LIBRARY_LIB%\arrow_compute_static.lib exit 1 # [win]
399+
400+
about:
401+
home: http://github.com/apache/arrow
402+
license: Apache-2.0
403+
license_file:
404+
- LICENSE.txt
405+
summary: C++ libraries for Apache Arrow Compute
406+
355407
- name: libarrow-dataset
356408
script: install-libarrow.sh # [unix]
357409
script: install-libarrow.bat # [win]
@@ -371,13 +423,15 @@ outputs:
371423
host:
372424
- {{ pin_subpackage("libarrow", exact=True) }}
373425
- {{ pin_subpackage("libarrow-acero", exact=True) }}
426+
- {{ pin_subpackage("libarrow-compute", exact=True) }}
374427
- {{ pin_subpackage("libparquet", exact=True) }}
375428
- libabseil # [osx]
376429
- libprotobuf # [osx]
377430
- libopentelemetry-cpp # [osx]
378431
run:
379432
- {{ pin_subpackage("libarrow", exact=True) }}
380433
- {{ pin_subpackage("libarrow-acero", exact=True) }}
434+
- {{ pin_subpackage("libarrow-compute", exact=True) }}
381435
- {{ pin_subpackage("libparquet", exact=True) }}
382436
# run-constraints handled by libarrow, since we depend on it with exact=True
383437

0 commit comments

Comments
 (0)