From 3434fc92a61a9eb693bd83f5170f168b60ede1c3 Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Thu, 26 Nov 2026 11:40:17 +0000 Subject: [PATCH] docs(arcticpy): install 2.7 from a pinned GitHub commit until it is on PyPI pyproject.toml note, .readthedocs.yaml post_install and the AGENTS.md recipe move from arcticpy==2.6 to the same pinned jkeger/arctic commit (2.7) that PyAutoHeart's install_arcticpy.sh uses. PyAutoHeart#372. Co-Authored-By: Claude Opus 5.5 --- .readthedocs.yaml | 9 +++++---- AGENTS.md | 9 +++++---- pyproject.toml | 9 ++++++--- 3 files changed, 16 insertions(+), 11 deletions(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 22c85fe3..1e80e229 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -8,10 +8,11 @@ build: - libgsl-dev jobs: post_install: - # arcticpy is a source-only C++ sdist whose own requirements downgrade - # numpy below 2.0 — install numpy first, then build without deps. - - pip install numpy - - pip install arcticpy==2.6 --no-build-isolation --no-deps + # arcticpy is a source-only C++ build; install numpy and Cython first, + # then build without deps. 2.7 comes from a pinned GitHub commit until it + # is on PyPI (PyAutoHeart#372), then `arcticpy==2.7`. + - pip install "numpy>=2" "cython>=3" + - pip install "arcticpy @ git+https://github.com/jkeger/arctic@6f5153582aca00b7b0cc11ab04b2c58a7502400d" --no-build-isolation --no-deps python: install: diff --git a/AGENTS.md b/AGENTS.md index 40dc93c2..dd213eba 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -58,9 +58,10 @@ The full recipe: ```bash sudo apt-get update && sudo apt-get install -y libgsl-dev pip install --upgrade pip setuptools wheel # BUILD deps: --no-build-isolation -pip install numpy cython # will not supply these +pip install "numpy>=2" "cython>=3" # will not supply these pip install scipy matplotlib # RUNTIME deps --no-deps suppresses -pip install arcticpy==2.6 --no-build-isolation --no-deps +pip install "arcticpy @ git+https://github.com/jkeger/arctic@6f5153582aca00b7b0cc11ab04b2c58a7502400d" \ + --no-build-isolation --no-deps # 2.7; `arcticpy==2.7` once on PyPI ``` Verify with the distribution metadata, **not** `arcticpy.__version__` — @@ -73,8 +74,8 @@ python -c "import arcticpy; from importlib.metadata import version; print(versio This recipe has one owner for the whole organism: **`PyAutoHeart/.github/actions/install-arcticpy`**, the composite action every -CTI repo's CI consumes. It also holds the single `arcticpy==2.6` pin — bump it -there, not here. Keep this note and that action in step. +CTI repo's CI consumes. It also holds the single arcticpy pin (for now a GitHub +commit of 2.7, until 2.7 is on PyPI; PyAutoHeart#372) — bump it there, not here. Keep this note and that action in step. If GSL headers are missing and you lack root, extract them locally (`apt-get download libgsl-dev && dpkg -x ...`) and point `CPPFLAGS`/`LDFLAGS` diff --git a/pyproject.toml b/pyproject.toml index b9651d94..50fed68f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,9 +27,12 @@ keywords = ["cli"] # arcticpy (the C++ arctic clocking code) is needed for clocking, but # `import autocti` works without it (autocti/_arcticpy.py imports it lazily). It is # deliberately NOT a pip dependency: its sdist is source-only (needs libgsl-dev -# and a C++ toolchain) and its own requirements downgrade numpy below 2.0. -# Install it separately with `pip install arcticpy==2.6 --no-build-isolation -# --no-deps` after installing numpy. +# and a C++ toolchain) and its requirements up to 2.6 downgrade numpy below 2.0. +# Install it separately, after installing numpy and Cython (GSL headers needed), +# with `pip install "arcticpy @ git+https://github.com/jkeger/arctic@6f5153582aca00b7b0cc11ab04b2c58a7502400d" +# --no-build-isolation --no-deps` (2.7 from a pinned GitHub commit: a stopgap +# until 2.7 is on PyPI, then `pip install arcticpy==2.7 --no-build-isolation +# --no-deps`; PyAutoHeart#372). dependencies = [ # Prevent fallback to Nerves releases permitting the CPU LAPACK deadlock. "autonerves>=2026.11.9.1.post1", # jax>=0.12 floor (PyAutoNerves#215): excludes 2026.11.9.1, the last jax-0.11 Nerves; ">=…post1" so a source Nerves built as 2026.11.9.1.postN still satisfies it