Skip to content

docs: tested install commands and one Python setup - #439

Merged
marjohma merged 3 commits into
mainfrom
docs/onboarding-setup
Nov 25, 2026
Merged

marjohma merged 3 commits into
mainfrom
docs/onboarding-setup

Conversation

@marjohma

Copy link
Copy Markdown
Member

Makes the first two steps for a new user (installing system packages, setting up Python) concrete and tested.

System packages

  • A clean ubuntu:24.04 container builds every executable, passes all 197 non-golden CTest tests, all four tutorials and make pytest, with only:
    git make cmake ninja-build gcc g++ gfortran libopenblas-dev liblapack-dev libsuperlu-dev python3-venv.
    NetCDF, HDF5, GSL, MPFR, GMP, OpenMPI and SuiteSparse from the system are not needed.
  • README now gives copy-paste commands for Ubuntu (24.04+, 22.04's CMake is too old) and macOS/Homebrew.
  • CI installs exactly these lists (with a "keep in sync" comment), so the README stays tested on both platforms.
  • Removes utility_scripts/setup_{debian,arch}.sh: unreferenced and outdated (the Debian one lacked SuperLU).

Python

  • One recipe everywhere (README, python/README, tutorials, AGENTS.md, CI): venv + pip install -e ./KIM/python -e ./python.
  • KAMELpy: requires-python >= 3.10 (matches kim), matplotlib becomes a dependency (KiLCA_interface imports it at load time), plasmapy/cxroots move to an optional [analysis] extra.
  • Drops python/Makefile and python/requirements.txt (installed with global pip3).
  • python/README.md rewritten: install, extras, package overview.
  • Fixes two invalid-escape SyntaxWarnings printed on importing KiLCA_interface.

Not in this PR

The container test ran on aarch64 Linux and found that the fetched neo_rt adds -march=x86-64-v2 on every non-Apple system, so KAMEL does not build on ARM Linux. That needs a fix in NEO-RT (and the same pattern exists in libneo's CMakeLists, guarded there).

Require Python 3.10 like the kim package and make matplotlib a
dependency, since KiLCA_interface imports it at load time. Move the
plasmapy/cxroots needs of the dispersion modules into an optional
"analysis" extra and drop python/Makefile and requirements.txt, which
installed without a virtual environment. Rewrite python/README.md
around the single venv recipe that the tutorials use.
A clean Ubuntu 24.04 container builds everything and passes ctest and
the tutorials with only compilers, CMake, Ninja, Git, OpenBLAS/LAPACK
and SuperLU. Document that list and the Homebrew equivalent, and make
CI install exactly these packages and the documented Python packages
so the instructions stay tested. Remove the outdated setup scripts in
utility_scripts/ (setup_debian.sh lacked SuperLU).
@marjohma
marjohma added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit fd5cd59 Nov 25, 2026
8 checks passed
@marjohma
marjohma deleted the docs/onboarding-setup branch November 25, 2026 06:21
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