-
Notifications
You must be signed in to change notification settings - Fork 4.1k
GH-49321: [C++][Python] Add pixi build for Arrow and PyArrow #49849
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
raulcd
wants to merge
5
commits into
apache:main
Choose a base branch
from
raulcd:GH-49321
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
19a04c9
GH-49321: [C++][Python] Add pixi build for Arrow and PyArrow
raulcd a27d06c
Minor clean-up
raulcd 6b29bb6
Add pixi build for Python
raulcd 17bb233
Minor fix to x-hierarchy on compose.yaml
raulcd 3f7725b
Add missing PARQUET_TEST_DATA for arrow cpp build
raulcd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, | ||
| # software distributed under the License is distributed on an | ||
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
|
|
||
| ARG arch=amd64 | ||
| FROM ${arch}/ubuntu:24.04 | ||
|
|
||
| # install build essentials | ||
| RUN export DEBIAN_FRONTEND=noninteractive && \ | ||
| apt-get update -y -q && \ | ||
| apt-get install -y -q \ | ||
| curl \ | ||
| gdb \ | ||
| libc6-dbg \ | ||
| tzdata \ | ||
| wget && \ | ||
| apt-get clean && \ | ||
| rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # install pixi | ||
| RUN curl -fsSL https://pixi.sh/install.sh -o /tmp/install-pixi.sh | ||
| RUN PIXI_HOME=/opt/pixi PIXI_NO_PATH_UPDATE=1 sh /tmp/install-pixi.sh && rm /tmp/install-pixi.sh | ||
| ENV PATH=/opt/pixi/bin:$PATH | ||
|
|
||
| # Verify pixi installation | ||
| RUN pixi --version |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, | ||
| # software distributed under the License is distributed on an | ||
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
|
|
||
| **/.pixi | ||
| **/pixi.lock |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,90 @@ | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, | ||
| # software distributed under the License is distributed on an | ||
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
|
|
||
| [workspace] | ||
| channels = ["https://prefix.dev/conda-forge"] | ||
| platforms = ["linux-64", "linux-aarch64", "osx-arm64"] | ||
| preview = ["pixi-build"] | ||
|
|
||
| [environments] | ||
| default = [] | ||
| test = ["test"] | ||
|
|
||
| [feature.test.activation.env] | ||
| ARROW_TEST_DATA = "/arrow/testing/data" | ||
| PARQUET_TEST_DATA = "/arrow/cpp/submodules/parquet-testing/data" | ||
|
|
||
| [feature.test.dependencies] | ||
| binutils = "*" | ||
| cmake = "*" | ||
| python = "*" | ||
|
|
||
| [feature.test.tasks] | ||
| # This path mangling feels extremely finicky. Investigate alternatives to make this more robust. | ||
| test = "cd $(ls -d /arrow/ci/pixi/cpp/.pixi/build/work/arrow-cpp-*/work/build | head -n 1) && ctest --output-on-failure" | ||
|
|
||
| [package] | ||
| name = "arrow-cpp" | ||
| # TODO: Incorporate this to the bump version script and tests | ||
| version = "25.0.0.dev" | ||
| authors = ["Apache Arrow"] | ||
|
|
||
| [package.build] | ||
| source.path = "../../../cpp" | ||
|
|
||
| [package.build.backend] | ||
| name = "pixi-build-cmake" | ||
| version = "*" | ||
|
|
||
| [package.build.config] | ||
| extra-args = [ | ||
| "-DCMAKE_BUILD_TYPE=Release", | ||
| "-DARROW_BUILD_TESTS=ON", | ||
| "-DARROW_COMPUTE=ON", | ||
| "-DARROW_CSV=ON", | ||
| "-DARROW_DATASET=ON", | ||
| "-DARROW_FILESYSTEM=ON", | ||
| "-DARROW_JSON=ON", | ||
| "-DARROW_PARQUET=ON", | ||
| "-DARROW_WITH_BROTLI=ON", | ||
| "-DARROW_WITH_BZ2=ON", | ||
| "-DARROW_WITH_LZ4=ON", | ||
| "-DARROW_WITH_SNAPPY=ON", | ||
| "-DARROW_WITH_ZLIB=ON", | ||
| "-DARROW_WITH_ZSTD=ON", | ||
| # libutf8proc on package-host-dependencies seems to fail. | ||
| # More investigation needed. In the meantime use bundled. | ||
| "-Dutf8proc_SOURCE=BUNDLED", | ||
| "-DOPENSSL_ROOT_DIR=$PREFIX", | ||
| ] | ||
|
|
||
| [package.host-dependencies] | ||
| brotli = "*" | ||
| bzip2 = "*" | ||
| gflags = "*" | ||
| gmock = ">=1.10.0" | ||
| gtest = ">=1.10.0" | ||
| libboost-devel = "*" | ||
| lz4-c = "*" | ||
| openssl = "*" | ||
| rapidjson = "*" | ||
| re2 = "*" | ||
| snappy = "*" | ||
| thrift-cpp = ">=0.11.0" | ||
| xsimd = ">=14.0" | ||
| zlib = "*" | ||
| zstd = "*" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,85 @@ | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, | ||
| # software distributed under the License is distributed on an | ||
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
|
|
||
| [workspace] | ||
| channels = ["https://prefix.dev/conda-forge"] | ||
| platforms = ["linux-64", "linux-aarch64", "osx-arm64"] | ||
| preview = ["pixi-build"] | ||
|
|
||
| [environments] | ||
| default = [] | ||
| test = ["test"] | ||
|
|
||
| [feature.test] | ||
| platforms = ["linux-64"] | ||
|
|
||
| [feature.test.activation.env] | ||
| ARROW_TEST_DATA = "/arrow/testing/data" | ||
| PARQUET_TEST_DATA = "/arrow/cpp/submodules/parquet-testing/data" | ||
|
|
||
| [feature.test.dependencies] | ||
| hypothesis = "*" | ||
| pyarrow = { path = "." } | ||
| pytest = "*" | ||
| pytest-timeout = "*" | ||
|
|
||
| [feature.test.tasks] | ||
| test = "pytest -r s --pyargs pyarrow --timeout=60" | ||
|
|
||
| [package] | ||
| name = "pyarrow" | ||
| # TODO: Incorporate this to the bump version script and tests | ||
| version = "25.0.0.dev" | ||
| authors = ["Apache Arrow"] | ||
|
|
||
| [package.build] | ||
| source.path = "../../../python" | ||
|
|
||
| [package.build.backend] | ||
| name = "pixi-build-python" | ||
| version = "*" | ||
|
|
||
| [package.build.config] | ||
| noarch = false | ||
| compilers = ["c", "cxx"] | ||
| env = { | ||
| PYARROW_BUNDLE_ARROW_CPP = "0", | ||
| CMAKE_GENERATOR = "Ninja", | ||
| ARROW_HOME = "$PREFIX", | ||
| } | ||
|
|
||
| [package.host-dependencies] | ||
| arrow-cpp = { path = "../cpp" } # source-dep on the arrow-cpp manifest | ||
| cmake = "*" | ||
| cython = ">=3.0" | ||
| gcc_linux-64 = "*" | ||
| git = "*" | ||
| gxx_linux-64 = "*" | ||
| ninja = "*" | ||
| numpy = "*" | ||
| pip = "*" | ||
| pkg-config = "*" | ||
| python = ">=3.10,<3.14" | ||
| scikit-build-core = "*" | ||
| setuptools-scm = "*" | ||
| sysroot_linux-64 = "*" | ||
| zlib = "*" | ||
|
|
||
| [package.run-dependencies] | ||
| arrow-cpp = { path = "../cpp" } | ||
| python = ">=3.10,<3.14" | ||
| numpy = "*" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(I think this is implicit)