Skip to content

Add "minimal" simple_python bundle (pandas baseline) - #3

Merged
jefferis merged 1 commit into
mainfrom
minimal-python-bundle
Aug 20, 2026
Merged

Add "minimal" simple_python bundle (pandas baseline)#3
jefferis merged 1 commit into
mainfrom
minimal-python-bundle

Conversation

@jefferis

Copy link
Copy Markdown
Member

Summary

Adds a "minimal" bundle to simple_python() that installs just pandas (numpy comes in as its dependency).

pandas is nat.python's own baseline — pandas2df() cannot work without it — yet no bundle installed it explicitly. "basic"/"full"/"extra" only pulled pandas in transitively via cloud-volume / CAVEclient. That left consumers who need only the pandas interop layer (e.g. seatabler) with no lightweight, explicit install path, and it meant a seatable_api-only install would fail at the first import("pandas").

Changes

  • New "minimal" pyinstall option: installs pandas (brings numpy).
  • minimal/basic/full/extra now share an explicit pandas baseline step, so "basic" no longer relies on pandas arriving transitively.
  • Works on both the managed miniconda env and a custom RETICULATE_PYTHON (miniconda = FALSE).
  • Docs (@details, @param, @examples) and simple_python.Rd updated.

Motivation

Downstream (seatabler) will provision Python via simple_python("minimal", pkgs = "seatable_api"), so CI exercises the same user-facing install path rather than a bespoke pip line.

🤖 Generated with Claude Code

pandas is nat.python's own baseline -- pandas2df() cannot work without it,
yet no bundle installed it explicitly (basic/full/extra only pulled it in
transitively via cloud-volume/CAVEclient). Add a "minimal" bundle that
installs just pandas (numpy comes as its dependency) and make it the shared
first step of basic/full/extra, so any consumer that needs only the pandas
interop layer has a lightweight, explicit install path.
@jefferis
jefferis merged commit 813c628 into main Aug 20, 2026
3 checks passed
@jefferis
jefferis deleted the minimal-python-bundle branch August 20, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant