Skip to content

Commit

Permalink
feat: detect R-universe to download pre-built binary
Browse files Browse the repository at this point in the history
  • Loading branch information
eitsupi committed Oct 29, 2023
1 parent f4e61e2 commit fd9f885
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ check_bin_lib() {
LIBR_POLARS_BUILD="false"
fi

# On R-universe, we try to download the pre-built binary from GitHub releases.
if [ -z "${NOT_CRAN}" ] && [ -n "${MY_UNIVERSE}" ]; then
echo "It seems that this is on R-universe <${MY_UNIVERSE}>."
echo "Trying to download pre-built binary."
LIBR_POLARS_BUILD="false"
fi

if [ "${LIBR_POLARS_BUILD}" = "false" ] && [ -f "tools/lib-sums.tsv" ] && [ ! -f "${LIBR_POLARS_PATH}" ] ; then
echo ""
echo "--------------- [ TRY TO DOWNLOAD PRE-BUILT BINARY ] ---------------"
Expand Down

0 comments on commit fd9f885

Please sign in to comment.