Skip to content

Fix skip site-packages for web packaging#199

Merged
FeodorFitsner merged 2 commits intomainfrom
fix-skip-site-packages
May 2, 2026
Merged

Fix skip site-packages for web packaging#199
FeodorFitsner merged 2 commits intomainfrom
fix-skip-site-packages

Conversation

@FeodorFitsner
Copy link
Copy Markdown
Contributor

No description provided.

Compute a single sitePackagesRoot (defaulting to build/site-packages but overridden by the environment variable) before installing requirements. Use that path when installing requirements, and for the Pyodide platform copy the site-packages into the temp app archive directory (defaultSitePackagesDir). Also cleans up nullable logic and minor variable handling.
Add a guard to only copy site-packages for the Pyodide platform if there are requirements to include (requirements.isNotEmpty). This prevents unnecessary copying of the site-packages directory when no requirements are specified, avoiding wasted I/O and archive bloat.
@FeodorFitsner FeodorFitsner merged commit 3dff3b1 into main May 2, 2026
14 checks passed
@FeodorFitsner FeodorFitsner deleted the fix-skip-site-packages branch May 2, 2026 22:42
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