Skip to content

Conversation

@jgslunde
Copy link
Contributor

@jgslunde jgslunde commented Jan 8, 2026

  • Makes Commander4 installable with pip (clone and then pip install .)
  • Adds a build system, with CMake + scikit-build.
  • Allows for seamless editable install, with pip install -e .

Note that a lot of the earlier commits was a Meson + Ninja build setup, but I went away from this after realizing it didn't work properly with editable installs and MPI in combination (race condition upon import).

…as a pip package by running pip install -e . --no-build-isolation. You can then simply call commander4 globally.
…e Python frontend now has dynamic loading of correct CPU architecture. This means it's now safe to run make across different CPUs without re-building.
…code must be '1 level up', and we can't import individual functions (see changes to e.g. scan_TOD.py for example).
…nstalled also for non-editable installs, which isn't ideal but ohwell.
…e install + MPI creates race conditions during import (because of the stupid .pth files that call a loading script).
@jgslunde jgslunde requested a review from LeeoBianchi January 9, 2026 14:02
@jgslunde jgslunde force-pushed the dev-restructuring-build-cmake branch from dbaa54d to 3bd8a6b Compare January 9, 2026 20:14
@jgslunde jgslunde merged commit 961aa4d into main Jan 13, 2026
@jgslunde jgslunde deleted the dev-restructuring-build-cmake branch January 13, 2026 12:53
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.

2 participants