autobrew / scripts

Scripts used by R packages for fetching libs at install time
Apache License 2.0
4 stars 4 forks source link

Script for GLPK? #18

Open krlmlr opened 2 months ago

krlmlr commented 2 months ago

We're facing installation issues for igraph on macOS CI/CD, related to GLPK. I wonder if it's worth adding an installer script. How do other packages that require GLPK do it? Thanks!

CC @Antonov548.

jeroen commented 2 months ago

A build of glpk 5 is on the CRAN servers: https://github.com/R-macos/recipes/blob/master/recipes/glpk Binaries are here: https://mac.r-project.org/bin/darwin20/ In the r-universe CI these are automatically preinstalled.

Antonov548 commented 1 month ago

A build of glpk 5 is on the CRAN servers: https://github.com/R-macos/recipes/blob/master/recipes/glpk Binaries are here: https://mac.r-project.org/bin/darwin20/ In the r-universe CI these are automatically preinstalled.

Thanks for the response. Is there example how to integrate it to configure to provide include path and path to library for R package?

krlmlr commented 1 month ago

Example anticonf from other package: https://github.com/cran/rDEA/blob/aab922688625021041388ef9373d30cee0d92062/configure#L55 . Found through code search: https://github.com/search?q=org%3Acran%20path%3Aconfigure%20glpk&type=code .

@jeroen: Is this the way to go?

If this doesn't work for our CI/CD, perhaps debug it with https://github.com/mxschmitt/action-tmate? Any other suggestions?