Skip to content

Pixi build - #153

Merged
DerThorsten merged 5 commits into
emscripten-forge:mainfrom
DerThorsten:pixi-build
Nov 18, 2026
Merged

DerThorsten merged 5 commits into
emscripten-forge:mainfrom
DerThorsten:pixi-build

Conversation

@DerThorsten

Copy link
Copy Markdown
Collaborator

No description provided.

DerThorsten and others added 4 commits November 18, 2026 08:59
…aches, progress)

- core: Module.startPython() (synchronous) on a file system filled by the embedder; the classic bootstrap (load_pkg.js, untar / inflate / install_conda_file, dynload, init_phase_*) is removed
- runtime: Module._extract_archive (libarchive: tar / zip, gzip / bzip2 / zstd, .conda / .tar.bz2, safe paths, archive mtimes kept) and Module._tar_files
- npm: own init pipeline (runtime, solve, downloads in parallel), pinned urls, archives, files, sha256 only on request, progress events, compileRuntime / wasmModule, shared libs loaded after the start, npx <pkg> lock
- caches: installed packages as their final layout (pyjs-packages-v2) and python's bytecode per package (pyjs-packages-v2-bytecode); initTimings / installTimings
- tests focus on the npm package (vanilla page removed); docs and playground updated (progress bar, timings)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d runtime posted to a worker

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- pixi.toml: environments default (native tools), host-wasm32/64, npm-env-wasm32/64 (emscripten envs installed with pixi install --platform, pixi >= 0.84), pixi.lock
- the steps as chained tasks: envs -> configure -> build -> pack -> npm-package -> test-page -> tests; test / bench / test-npm / docs / clean
- pyjs_test_driver run loops browsers x modes and prints the summary; npm/build.mjs reads name + version itself
- CI: setup-pixi; build_local.sh, environment-dev.yml, environment-host.yml removed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comment thread .github/workflows/npm.yml Outdated
- name: Install the browsers
run: pixi run playwright install --with-deps chromium firefox webkit

# wasm32 + wasm64 (all browsers, main thread + module worker), the lock

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this comment contains more or less no info, remove

Comment thread build_utils/check_lock.py Outdated
@@ -0,0 +1,21 @@
"""Check the output of `npx <pkg> lock tabulate -o <file>` (pixi task `test-lock`):

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

explain better what this is testing and why

Comment thread build_utils/npm_env_meta.py Outdated
@@ -1,4 +1,4 @@
"""Complete an empack_env_meta.json for the npm package (build_local.sh npm).
"""Complete an empack_env_meta.json for the npm package (pixi task `pack`).

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does this mean? explain what we are completing.
Why are we not "genererating" or "writing", why completing? pls reword

Comment thread docs/development.md Outdated
pixi run test wasm64 "chromium firefox webkit"
# test <arch> [browsers] [modes] [test_env] [jspi]
pixi run test wasm32 chromium main no-numpy # without numpy
pixi run test wasm32 chromium "main worker" default off # JSPI switched off

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ixi run test wasm32 chromium "main worker" default off # JSPI switched off

why "default off"

Comment thread npm/src/runtime.ts
// (later installs do not add to them)
Object.defineProperty(Module, "initTimings", { value: finishTimings(timings), enumerable: true });

Object.defineProperty(Module, "pyjsArch", { value: arch, enumerable: true });

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is that then just wasm32 / wasm64?

Comment thread pyjs_test_driver/test_channel.py Outdated
@@ -15,12 +15,19 @@
naming its arch), like `pyb2d3-sandbox` on `pyb2d3`. A fake `tabulate` 0.0.1

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bad example, since we not releasing pyb2d3-sandbox is not needed with new pyb2d3 version, so chose another example

…cstrings, gh in the dev env

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@DerThorsten
DerThorsten merged commit 252d65e into emscripten-forge:main Nov 18, 2026
10 checks passed
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