Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
9 changes: 5 additions & 4 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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__` —
Expand All @@ -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`
Expand Down
9 changes: 6 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading