Commit Graph
6 Commits
Author SHA1 Message Date
duan_jandClaude Fable 5 7beb62cf05 pymol-open-source: build with --no-build-isolation per upstream INSTALL
Upstream documents 'pip install --no-build-isolation .'. With default
build isolation the wheel builds in an isolated env upstream never
tests and comes out pure-python (no _cmd.so) without any error - the
root cause of the ModuleNotFoundError: pymol._cmd at runtime.
setuptools+numpy now pre-installed into the venv as build deps.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-09-03 10:36:27 +02:00
duan_jandClaude Fable 5 7a5ca6638a pymol-open-source: wipe stale setuptools build tree + build wheel with --no-cache
Two cache layers kept resurrecting a pure-python wheel without _cmd.so:
- modbuild -f re-untars over the old src dir, leaving a stale build/
  tree from a half-failed compile; setup.py packs it as-is
- uv's built-wheel cache (in UV_CACHE_DIR, not ~/.cache/uv) then serves
  that wheel on every rebuild (Prepared in ~550ms = no compile)

rm -rf $SRC_DIR/build in configure + --no-cache on the pymol install
kill both permanently.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-09-03 10:26:17 +02:00
duan_jandClaude Fable 5 783c6325ad fix cache-clean hint: dist name is pymol, not pymol-open-source
uv registers the wheel as pymol==3.1.0, so 'uv cache clean
pymol-open-source' is a no-op and the poisoned pure-python wheel
keeps being reinstalled from cache (Prepared in 537ms = no compile).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-09-03 10:21:45 +02:00
duan_jandClaude Fable 5 9767ebbb1d harden pymol-open-source install check: import _cmd, not just launcher
Launcher existed while compiled ext was missing (partial compile ->
pure-python wheel installed from poisoned uv cache). Import pymol._cmd
at install time so a broken build dies in modbuild, not at runtime.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-09-03 09:37:05 +02:00
duan_j a9c84530f8 update pymol-open-source 2026-09-01 10:56:37 +02:00
duan_j 339626a467 add adxv, imagemagick, and pymol-open-source 2026-09-01 10:43:13 +02:00