Skip to content

Commit 1398977

Browse files
authored
Merge pull request conda-forge#1819 from regro-cf-autotick-bot/21.0.0_h0f9ac5
arrow-cpp v21.0.0
2 parents cee3133 + 743e8ce commit 1398977

7 files changed

+101
-55
lines changed

README.md

Lines changed: 13 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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: 70 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% set version = "20.0.0" %}
1+
{% set version = "21.0.0" %}
22
{% set cuda_enabled = cuda_compiler_version != "None" %}
33
{% set build_ext_version = "5.0.0" %}
44
{% set build_ext = "cuda" if cuda_enabled else "cpu" %}
@@ -15,26 +15,24 @@ package:
1515
source:
1616
- url: https://www.apache.org/dyn/closer.lua/arrow/arrow-{{ version }}/apache-arrow-{{ version }}.tar.gz?action=download
1717
fn: apache-arrow-{{ version }}.tar.gz
18-
sha256: 89efbbf852f5a1f79e9c99ab4c217e2eb7f991837c005cba2d4a2fbd35fad212
18+
sha256: 5d3f8db7e72fb9f65f4785b7a1634522e8d8e9657a445af53d4a34a3849857b5
1919
patches:
2020
# skip gcsfs tests due to missing `storage-testbench`
2121
- patches/0001-disable-gcsfs_test.patch
2222
# upstream problems on with s3 tests on osx, see
2323
# https://github.com/apache/arrow/issues/35587
2424
- patches/0002-skip-NonExistentBucket-test-on-osx.patch
25-
# backport https://github.com/apache/arrow/pull/45859
26-
- patches/0003-MINOR-C-Fix-OTel-1.19-compat-after-silent-breaking-c.patch
2725

2826
# testing-submodules not part of release tarball
2927
- git_url: https://github.com/apache/arrow-testing.git
30-
git_rev: d2a13712303498963395318a4eb42872e66aead7
28+
git_rev: fbf6b703dc93d17d75fa3664c5aa2c7873ebaf06
3129
folder: testing
3230
- git_url: https://github.com/apache/parquet-testing.git
3331
git_rev: 18d17540097fca7c40be3d42c167e6bfad90763c
3432
folder: cpp/submodules/parquet-testing
3533

3634
build:
37-
number: 18
35+
number: 0
3836
# for cuda support, building with one version is enough to be compatible with
3937
# all later versions, since arrow is only using libcuda, and not libcudart.
4038
skip: true # [cuda_compiler_version not in ("None", cuda_compiler_version_min)]
@@ -52,7 +50,7 @@ requirements:
5250
- clangdev {{ llvm_version }} # [build_platform != target_platform]
5351
- llvmdev {{ llvm_version }} # [build_platform != target_platform]
5452
- gnuconfig # [build_platform != target_platform]
55-
- cmake <4
53+
- cmake
5654
- ninja
5755
# necessary for vendored jemalloc
5856
- autoconf # [unix]
@@ -144,11 +142,12 @@ outputs:
144142
- {{ pin_subpackage("libparquet", max_pin="x.x") }}
145143
requirements:
146144
build:
147-
- cmake <4
145+
- cmake
148146
- ninja
149147
host:
150148
- {{ pin_subpackage("libarrow", exact=True) }}
151149
- {{ pin_subpackage("libarrow-acero", exact=True) }}
150+
- {{ pin_subpackage("libarrow-compute", exact=True) }}
152151
- {{ pin_subpackage("libarrow-dataset", exact=True) }}
153152
- {{ pin_subpackage("libarrow-flight", exact=True) }}
154153
- {{ pin_subpackage("libarrow-flight-sql", exact=True) }}
@@ -160,6 +159,7 @@ outputs:
160159
run:
161160
- {{ pin_subpackage("libarrow", exact=True) }}
162161
- {{ pin_subpackage("libarrow-acero", exact=True) }}
162+
- {{ pin_subpackage("libarrow-compute", exact=True) }}
163163
- {{ pin_subpackage("libarrow-dataset", exact=True) }}
164164
- {{ pin_subpackage("libarrow-flight", exact=True) }}
165165
- {{ pin_subpackage("libarrow-flight-sql", exact=True) }}
@@ -207,7 +207,7 @@ outputs:
207207
- '*/nvcuda.dll' # [win]
208208
requirements:
209209
build:
210-
- cmake <4
210+
- cmake
211211
- ninja
212212
# for strong run-exports
213213
- {{ stdlib("c") }}
@@ -232,10 +232,8 @@ outputs:
232232
- libgoogle-cloud-storage-devel
233233
- libopentelemetry-cpp # [unix]
234234
- libprotobuf
235-
- libutf8proc
236235
- lz4-c
237236
- orc
238-
- re2
239237
- snappy
240238
- zlib
241239
- zstd
@@ -316,19 +314,21 @@ outputs:
316314
- {{ pin_subpackage("libarrow-acero", max_pin="x.x") }}
317315
requirements:
318316
build:
319-
- cmake <4
317+
- cmake
320318
- ninja
321319
# for strong run-exports
322320
- {{ stdlib("c") }}
323321
- {{ compiler("c") }}
324322
- {{ compiler("cxx") }}
325323
host:
326324
- {{ pin_subpackage("libarrow", exact=True) }}
325+
- {{ pin_subpackage("libarrow-compute", exact=True) }}
327326
- libabseil # [osx]
328327
- libprotobuf # [osx]
329328
- libopentelemetry-cpp # [osx]
330329
run:
331330
- {{ pin_subpackage("libarrow", exact=True) }}
331+
- {{ pin_subpackage("libarrow-compute", exact=True) }}
332332
# run-constraints handled by libarrow, since we depend on it with exact=True
333333

334334
test:
@@ -354,6 +354,56 @@ outputs:
354354
- LICENSE.txt
355355
summary: C++ libraries for Apache Arrow Acero
356356

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+
357407
- name: libarrow-dataset
358408
script: install-libarrow.sh # [unix]
359409
script: install-libarrow.bat # [win]
@@ -364,7 +414,7 @@ outputs:
364414
- {{ pin_subpackage("libarrow-dataset", max_pin="x.x") }}
365415
requirements:
366416
build:
367-
- cmake <4
417+
- cmake
368418
- ninja
369419
# for strong run-exports
370420
- {{ stdlib("c") }}
@@ -373,13 +423,15 @@ outputs:
373423
host:
374424
- {{ pin_subpackage("libarrow", exact=True) }}
375425
- {{ pin_subpackage("libarrow-acero", exact=True) }}
426+
- {{ pin_subpackage("libarrow-compute", exact=True) }}
376427
- {{ pin_subpackage("libparquet", exact=True) }}
377428
- libabseil # [osx]
378429
- libprotobuf # [osx]
379430
- libopentelemetry-cpp # [osx]
380431
run:
381432
- {{ pin_subpackage("libarrow", exact=True) }}
382433
- {{ pin_subpackage("libarrow-acero", exact=True) }}
434+
- {{ pin_subpackage("libarrow-compute", exact=True) }}
383435
- {{ pin_subpackage("libparquet", exact=True) }}
384436
# run-constraints handled by libarrow, since we depend on it with exact=True
385437

@@ -416,7 +468,7 @@ outputs:
416468
- {{ pin_subpackage("libarrow-flight", max_pin="x.x") }}
417469
requirements:
418470
build:
419-
- cmake <4
471+
- cmake
420472
- ninja
421473
# for strong run-exports
422474
- {{ stdlib("c") }}
@@ -468,7 +520,7 @@ outputs:
468520
- {{ pin_subpackage("libarrow-flight-sql", max_pin="x.x") }}
469521
requirements:
470522
build:
471-
- cmake <4
523+
- cmake
472524
- ninja
473525
# for strong run-exports
474526
- {{ stdlib("c") }}
@@ -522,7 +574,7 @@ outputs:
522574
- {{ pin_subpackage("libarrow-gandiva", max_pin="x.x") }}
523575
requirements:
524576
build:
525-
- cmake <4
577+
- cmake
526578
- ninja
527579
# for strong run-exports
528580
- {{ stdlib("c") }}
@@ -575,7 +627,7 @@ outputs:
575627
- {{ pin_subpackage("libarrow-substrait", max_pin="x.x") }}
576628
requirements:
577629
build:
578-
- cmake <4
630+
- cmake
579631
- ninja
580632
# for strong run-exports
581633
- {{ stdlib("c") }}
@@ -627,7 +679,7 @@ outputs:
627679
- {{ pin_subpackage("libparquet", max_pin="x.x") }}
628680
requirements:
629681
build:
630-
- cmake <4
682+
- cmake
631683
- ninja
632684
# for strong run-exports
633685
- {{ stdlib("c") }}

recipe/patches/0001-disable-gcsfs_test.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From 7eeeb3020a6598d5b3ee544517846eab878c4d98 Mon Sep 17 00:00:00 2001
1+
From 30fba4c46fe8073c9b2fead7e0a46a60a6d80324 Mon Sep 17 00:00:00 2001
22
From: "H. Vetinari" <[email protected]>
33
Date: Sat, 2 Nov 2024 15:41:34 +1100
4-
Subject: [PATCH 1/3] disable gcsfs_test
4+
Subject: [PATCH 1/2] disable gcsfs_test
55

66
it cannot work unless we package https://github.com/googleapis/storage-testbench,
77
which however has extremely tight dependencies on protobuf etc., making it very
@@ -11,7 +11,7 @@ hard to fit this into our migration patterns
1111
1 file changed, 8 deletions(-)
1212

1313
diff --git a/cpp/src/arrow/filesystem/CMakeLists.txt b/cpp/src/arrow/filesystem/CMakeLists.txt
14-
index 7afdf566f2..b22a48a0c9 100644
14+
index 5250ed2a88..ba053bd501 100644
1515
--- a/cpp/src/arrow/filesystem/CMakeLists.txt
1616
+++ b/cpp/src/arrow/filesystem/CMakeLists.txt
1717
@@ -42,14 +42,6 @@ if(ARROW_BUILD_BENCHMARKS)

recipe/patches/0002-skip-NonExistentBucket-test-on-osx.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
From deb8b771607671511ce0e2a2586502e0de3bc5c5 Mon Sep 17 00:00:00 2001
1+
From da2bd6baff0e10b961684a9024e25f9b2d821a3c Mon Sep 17 00:00:00 2001
22
From: "H. Vetinari" <[email protected]>
33
Date: Sun, 24 Nov 2024 20:22:35 +1100
4-
Subject: [PATCH 2/3] skip NonExistentBucket test on osx
4+
Subject: [PATCH 2/2] skip NonExistentBucket test on osx
55

66
---
77
cpp/src/arrow/filesystem/s3fs_test.cc | 4 ++++
88
1 file changed, 4 insertions(+)
99

1010
diff --git a/cpp/src/arrow/filesystem/s3fs_test.cc b/cpp/src/arrow/filesystem/s3fs_test.cc
11-
index 370f3b2685..45ed73d420 100644
11+
index f0a5d0e2e4..b5578b4f74 100644
1212
--- a/cpp/src/arrow/filesystem/s3fs_test.cc
1313
+++ b/cpp/src/arrow/filesystem/s3fs_test.cc
14-
@@ -431,6 +431,10 @@ TEST_F(S3RegionResolutionTest, RestrictedBucket) {
14+
@@ -438,6 +438,10 @@ TEST_F(S3RegionResolutionTest, RestrictedBucket) {
1515
}
1616

1717
TEST_F(S3RegionResolutionTest, NonExistentBucket) {

recipe/patches/0003-MINOR-C-Fix-OTel-1.19-compat-after-silent-breaking-c.patch

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)