-
Notifications
You must be signed in to change notification settings - Fork 4k
GH-38043: [R] Enable all features by default on macOS #38195
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
Changes from all commits
b55fcc6
7d0091f
9804981
107fe7e
845e607
08b463f
5c30461
115968f
10ea3a3
0b5bd3e
9d40184
4ddbeaf
f878645
647f84c
ab8c7f8
36537e2
d8aff44
8ba38a1
66401fc
db2ea4c
e2c05f8
9d209a6
16e72d4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -57,7 +57,8 @@ try_download <- function(from_url, to_file, hush = quietly) { | |
| } | ||
|
|
||
| not_cran <- env_is("NOT_CRAN", "true") | ||
| if (not_cran) { | ||
| # enable full featured builds and binaries for macOS (or if the NOT_CRAN variable has been set) | ||
| if (not_cran || on_macos) { | ||
| # Set more eager defaults | ||
| if (env_is("LIBARROW_BINARY", "")) { | ||
| Sys.setenv(LIBARROW_BINARY = "true") | ||
|
|
@@ -759,6 +760,7 @@ is_feature_requested <- function(env_varname, default = env_is("LIBARROW_MINIMAL | |
| with_cloud_support <- function(env_var_list) { | ||
| arrow_s3 <- is_feature_requested("ARROW_S3") | ||
| arrow_gcs <- is_feature_requested("ARROW_GCS") | ||
|
|
||
| if (arrow_s3 || arrow_gcs) { | ||
| # User wants S3 or GCS support. | ||
| # Make sure that we have curl and openssl system libs | ||
|
|
@@ -773,11 +775,6 @@ with_cloud_support <- function(env_var_list) { | |
| cat("**** ", start_msg, " support ", msg, "; building with ", off_flags, "\n") | ||
| } | ||
|
|
||
| # Check the features | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why delete this comment? Is it no longer accurate or useful?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I explained it in the commit message which seems redundant now as it doesn't show up unless you check ^^ The use of cmake here is correct in the fail fast way and matches the actual build, which the test compilation would not be. On the other hand the test compilation does not require cmake and is used to get the binary so we would need cmake just to check for the deps which is an unnecessary dependency. So I removed the comment because there is no change necessary!
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure I follow what you're saying here as to why it's redundant (or not used)? Could you explain a bit more for me?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it's reasonable to have some comment here explaing why this step exists; however, I think a wholistic review of comments on the entire script is better suited to #38236 (after rebase) (and the existing comment doesn't make this clear to me, at least). |
||
| # This duplicates what we do with the test program above when we check | ||
| # capabilities for using binaries. We could consider consolidating this | ||
| # logic, though these use cmake in order to match exactly what we do in the | ||
| # libarrow build, and maybe that increases the fidelity. | ||
assignUser marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| if (!cmake_find_package("CURL", NULL, env_var_list)) { | ||
| # curl on macos should be installed, so no need to alter this for macos | ||
| # TODO: check for apt/yum/etc. and message the right thing? | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.