Skip to content

[Ruby] Add support for auto dependency install for red-arrow on macOS #49316

@kou

Description

@kou

Describe the enhancement requested

red-arrow has auto dependency install configurations:

repository_url_prefix = "https://packages.apache.org/artifactory/arrow"
[
# Try without additional repository
["amazon_linux", "arrow-glib-devel"],
# Retry with additional repository
[
"amazon_linux",
"#{repository_url_prefix}/amazon-linux/%{version}/" +
"apache-arrow-release-latest.rpm",
],
["amazon_linux", "arrow-glib-devel"],
# Try without additional repository
["centos", "arrow-glib-devel"],
# Retry with additional repository
[
"centos",
"#{repository_url_prefix}/centos/%{major_version}-stream/" +
"apache-arrow-release-latest.rpm",
],
["centos", "arrow-glib-devel"],
["conda", "arrow-c-glib"],
# Try without additional repository
["debian", "libarrow-glib-dev"],
# Retry with additional repository
[
"debian",
"#{repository_url_prefix}/%{distribution}/" +
"apache-arrow-apt-source-latest-%{code_name}.deb",
],
["debian", "libarrow-glib-dev"],
["fedora", "libarrow-glib-devel"],
# Try without additional repository
["rhel", "arrow-glib-devel"],
# Retry with additional repository
[
"rhel",
"#{repository_url_prefix}/almalinux/%{major_version}/" +
"apache-arrow-release-latest.rpm",
],
["rhel", "arrow-glib-devel"],
].each do |platform, package|
spec.requirements <<
"system: arrow-glib>=#{required_arrow_glib_version}: " +
"#{platform}: #{package}"
end
end

But the current configurations misses Homebrew. We can install Apache Arrow C++ and GLib automatically on macOS by gem install red-arrow with the configuration for Homebrew.

Component(s)

Ruby

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions