Repository navigation
Pixi build - #153
Merged
Merged
Pixi build#153
Conversation
…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>
DerThorsten
commented
Nov 18, 2026
| - name: Install the browsers | ||
| run: pixi run playwright install --with-deps chromium firefox webkit | ||
|
|
||
| # wasm32 + wasm64 (all browsers, main thread + module worker), the lock |
Collaborator
Author
There was a problem hiding this comment.
this comment contains more or less no info, remove
DerThorsten
commented
Nov 18, 2026
| @@ -0,0 +1,21 @@ | |||
| """Check the output of `npx <pkg> lock tabulate -o <file>` (pixi task `test-lock`): | |||
Collaborator
Author
There was a problem hiding this comment.
explain better what this is testing and why
DerThorsten
commented
Nov 18, 2026
| @@ -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`). | |||
Collaborator
Author
There was a problem hiding this comment.
what does this mean? explain what we are completing.
Why are we not "genererating" or "writing", why completing? pls reword
DerThorsten
commented
Nov 18, 2026
| 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 |
Collaborator
Author
There was a problem hiding this comment.
ixi run test wasm32 chromium "main worker" default off # JSPI switched off
why "default off"
DerThorsten
commented
Nov 18, 2026
| // (later installs do not add to them) | ||
| Object.defineProperty(Module, "initTimings", { value: finishTimings(timings), enumerable: true }); | ||
|
|
||
| Object.defineProperty(Module, "pyjsArch", { value: arch, enumerable: true }); |
Collaborator
Author
There was a problem hiding this comment.
is that then just wasm32 / wasm64?
DerThorsten
commented
Nov 18, 2026
| @@ -15,12 +15,19 @@ | |||
| naming its arch), like `pyb2d3-sandbox` on `pyb2d3`. A fake `tabulate` 0.0.1 | |||
Collaborator
Author
There was a problem hiding this comment.
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.