Repository navigation
docs: refresh all docs for embedded-python runtime layer and offline install - #10
Conversation
…install - README: new technical section on embedded CPython / osgeo_utils, offline air-gapped install instructions, PYTHONPATH in activation list - vignette: embedded-python algorithm example (driver gpkg validate) and offline install section - AGENTS.md: bundle contract includes python/osgeo_utils and PYTHONPATH - dev/docs: align overview, ci/release, runtime api, troubleshooting, and toolchain notes with current bundle contents and smoke tests; remove references to nonexistent tools/audit_gdal_bundle.ps1; add osgeo_utils ModuleNotFoundError triage entry - roxygen: document offline install path for install_gdal_runtime() (#5)
There was a problem hiding this comment.
Code Review
This pull request adds support for embedded-python GDAL algorithms (such as gdal driver gpkg validate) by bundling the pure-python osgeo_utils package and configuring PYTHONPATH during runtime activation. It also documents offline/air-gapped installation procedures and updates troubleshooting guides. The review feedback suggests improving the default behavior of fallback_zip to avoid pointing to a non-existent file, and ensuring consistent package-name prefixing in the troubleshooting documentation to prevent user errors.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
| #' Note the packaged `fallback_zip` default | ||
| #' (`inst/extdata/gdal-ucrt64-fallback.zip`) is not shipped with the package | ||
| #' (a full runtime bundle is too large to vendor); the fallback path only | ||
| #' applies when you provide a `fallback_zip` yourself. |
There was a problem hiding this comment.
The documentation states that the default fallback_zip (inst/extdata/gdal-ucrt64-fallback.zip) is not shipped with the package. This creates a contradiction where the documented default path is guaranteed to be non-existent for end-users.
To improve clarity and avoid user confusion, consider changing the default behavior of fallback_zip to NULL (meaning no fallback is attempted unless explicitly provided), rather than pointing to a non-existent package file by default. If this is done, the documentation can be simplified to state that no fallback is used by default.
#' Note that no default fallback zip is shipped with the package (a full
#' runtime bundle is too large to vendor); the fallback path only applies
#' when you provide a \\code{fallback_zip} yourself.| if missing, reinstall: `install_gdal_runtime(overwrite = TRUE)` | ||
| - run `activate_gdal_runtime()` and confirm |
There was a problem hiding this comment.
In the troubleshooting instructions, some function calls are prefixed with the package name (e.g., gdalraster.windows::gdal_home()), while others are not (e.g., install_gdal_runtime() and activate_gdal_runtime()).
To prevent object not found errors for users who have not attached the package via library(gdalraster.windows), and to maintain consistency, all package-specific functions should be fully qualified.
Suggested replacement:
if missing, reinstall: `gdalraster.windows::install_gdal_runtime(overwrite = TRUE)`
- run `gdalraster.windows::activate_gdal_runtime()` and confirm…ce-qualify troubleshooting calls
Summary
python/osgeo_utils, lazyPy_Initialize(), session-scopedPYTHONPATH), an offline/air-gapped install section, andPYTHONPATHin the activation listgdal driver gpkg validateviagdal_alg()+alg$output()) and the offline install pathpython/osgeo_utilsandPYTHONPATHactivation; verification contract includes the gpkg validate smoke testbin,include,lib,share,python), CI job descriptions (osgeo_utils staging, embedded-python smoke test, release-from-job-1 note),activate_gdal_runtime()return value, newModuleNotFoundError: osgeo_utilstriage entry, and removal of references to the nonexistenttools/audit_gdal_bundle.ps1install_gdal_runtime()roxygen documents the offline/manual install path and clarifies thefallback_zipdefault is not shipped (docs portion of docs/enhancement: clarifyinst/extdatafallback zip availability and document offline install path #5)Test plan
roxygen2::roxygenise()regeneratesman/cleanlyrmarkdown::render()of the vignette succeeds