Commit d349a16
committed
FIX: resolve JupyterLite notebook install errors in CircleCI preview
Two targeted fixes to doc/conf.py:
1. Clean dist_lite_dir before each wheel build so stale wheels from
previous runs do not accumulate in the piplite all.json index.
Previously each Sphinx build appended a new mne-9999.x.x wheel to
the directory, causing all.json to grow across runs and contain
multiple stale wheel entries.
2. Remove the hard version pin 'mne==9999.0.1' from the
first_notebook_cell piplite.install call. The version 9999.0.1 is a
local dev build that only exists in the generated all.json index.
When the CircleCI artifact viewer loads a notebook, the Pyodide
Web Worker cannot fetch the local all.json because CircleCI's
authentication proxy blocks unauthenticated cross-origin requests
from sandboxed Web Workers. piplite then silently falls back to
public PyPI, where mne==9999.0.1 does not exist, causing a
ValueError in every intro notebook.
Removing the pin allows piplite to install the highest available
version: the local dev wheel when all.json is reachable (production
docs server), and the latest stable MNE release from PyPI when it is
not (CircleCI preview). Both paths result in a working notebook
instead of a traceback.1 parent c41059a commit d349a16
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
534 | 534 | | |
535 | 535 | | |
536 | 536 | | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
537 | 540 | | |
538 | 541 | | |
539 | 542 | | |
| |||
565 | 568 | | |
566 | 569 | | |
567 | 570 | | |
568 | | - | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
569 | 577 | | |
570 | 578 | | |
571 | 579 | | |
| |||
0 commit comments