Example: Build Apache Arrow and PyArrow using Xrepo #1106
cyfdecyf
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
https://github.com/cyfdecyf/xrepo-apache-arrow/blob/main/pkg/arrow.lua try includes("common.lua")
add_requires("arrow", arrow_configs())
add_requireconfs("**.gflags", gflags_configs({override = true}))
add_requireconfs("**.zlib", zlib_configs({override = true}))
add_requireconfs("**.bzip2", bzip2_configs({override = true}))
add_requireconfs("**.boost", boost_configs({override = true}))
add_requireconfs("**.rapidjson", rapidjson_configs({override = true}))
add_requireconfs("**.re2", re2_configs({override = true}))
add_requireconfs("**.utf8proc", utf8proc_configs({override = true}))
add_requireconfs("**.brotli", brotli_configs({override = true}))
add_requireconfs("**.lz4", lz4_configs({override = true}))
add_requireconfs("**.zstd", zstd_configs({override = true}))
add_requireconfs("**.thrift", thrift_configs({override = true}))
add_requireconfs("**.openssl", openssl_configs({override = true}))
add_requireconfs("**.libevent", libevent_configs({override = true}))
add_requireconfs("**.openssl", openssl_configs({override = true})) or includes("common.lua")
add_requires("arrow", arrow_configs())
for _, name for ipairs({"gflags", "zlib", "bz2", ....}) do
add_requireconfs("**." .. name, get_xxx_configs(name, {override = true}))
end or add_requires("arrow.**." .. name, get_xxx_configs()) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I created a project that shows how to build Apache Arrow and PyArrow using Xrepo.
xrepo-apache-arrow
Apache Arrow has lots' of thirdparty dependencies when you enable many features. By using Xrepo, it's very easy to build Arrow and PyArrow yourself.
The project may also serve as an advanced use of Xrepo as it uses Lua script to pin package versions and configs.
@waruqi Please suggest for improvement. The
add_requireconfs
usage is a little complicated now.Happy hacking with Xrepo!
Beta Was this translation helpful? Give feedback.
All reactions