Skip to content
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

[Arrow] Another try at building Arrow #5425

Merged
merged 22 commits into from
Nov 6, 2022
Merged
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions A/Arrow/build_tarballs.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Note that this script can accept some limited command-line arguments, run
# `julia build_tarballs.jl --help` to see a usage message.
using BinaryBuilder, Pkg

name = "Arrow"
version = v"9.0.0"

# Collection of sources required to complete build
sources = [
ArchiveSource("https://github.com/apache/arrow/archive/refs/tags/apache-arrow-9.0.0.zip", "fb2469e9bfeb3e9a45f1e3086f536a329d59a0efd3c905436d3b6e8dd030be41")
]

# Bash recipe for building across all platforms
script = raw"""

cd $WORKSPACE/srcdir/arrow-apache-arrow-*/cpp

CMAKE_FLAGS=(-DCMAKE_INSTALL_PREFIX=$prefix
-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TARGET_TOOLCHAIN}
-DCMAKE_BUILD_TYPE=Release
-DARROW_BUILD_UTILITIES=ON
-DARROW_DEPENDENCY_SOURCE=SYSTEM
-DARROW_BUILD_STATIC=OFF
-DARROW_DATASET=ON
-DARROW_WITH_BZ2=ON
-DARROW_WITH_LZ4=ON
-DARROW_WITH_ZSTD=ON
-DARROW_WITH_ZLIB=ON
-DARROW_WITH_SNAPPY=ON
-DARROW_JEMALLOC_USE_SHARED=ON
-DARROW_PARQUET=ON
)

cmake . ${CMAKE_FLAGS[@]}

make -j${nproc}
make install
"""

# These are the platforms we will build for by default, unless further
# platforms are passed in on the command line
platforms = expand_cxxstring_abis(supported_platforms())

# The products that we will ensure are always built
products = [
LibraryProduct("libparquet", :libparquet),
LibraryProduct("libarrow", :libarrow)
]

# Dependencies that must be installed before this package can be built
dependencies = [
Dependency("boost_jll", compat="=1.76.0")
Dependency("Zlib_jll")
Dependency("Bzip2_jll", compat="1.0.7")
evetion marked this conversation as resolved.
Show resolved Hide resolved
Dependency("Zstd_jll")
Dependency("Lz4_jll")
Dependency("jemalloc_jll")
Dependency("Thrift_jll")
Dependency("snappy_jll")
]
evetion marked this conversation as resolved.
Show resolved Hide resolved

# Build the tarballs, and possibly a `build.jl` as well.
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; julia_compat="1.6")
b
evetion marked this conversation as resolved.
Show resolved Hide resolved