-
Notifications
You must be signed in to change notification settings - Fork 22
Add support for building without isolation #152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 28 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
967e2cf
Support building without isolation
agriyakhetarpal f796810
Pass along extra args, fix tests [integration]
agriyakhetarpal c2ae4af
Add a few stub tests
agriyakhetarpal b52ea77
Add [integration] test to build NumPy with `-nx`
agriyakhetarpal 4515ef7
Don't run tests on pushes with PRs
agriyakhetarpal 523e3d3
Trigger [integration] tests
agriyakhetarpal ed61759
Drop [integration] no-isolation test on macOS
agriyakhetarpal 8530171
No need to determine `sysconfigdata` again
agriyakhetarpal e38a704
Accept any args to `numpy.sh`
agriyakhetarpal 0aed06b
Move helper functions to `pyodide_build.common`
agriyakhetarpal 6c5da50
Mention effect of `--skip-dependency-check`
agriyakhetarpal 8325e80
Save symlinks in the build directory
agriyakhetarpal efee932
Git-ignore the created symlinks directory
agriyakhetarpal 8d17f99
Trigger [integration] tests
agriyakhetarpal a5e8463
Merge branch 'main' into feat/support-non-isolated-builds
agriyakhetarpal 97e41b6
Trigger [integration] tests
agriyakhetarpal 47d458b
Fix test
agriyakhetarpal 4f793fd
Add better "no isolation" [integration] test
agriyakhetarpal abad178
Use bash shell for [integration] tests
agriyakhetarpal d586dc4
Revert "Use bash shell for [integration] tests"
agriyakhetarpal b81e525
`source` doesn't work for some reason [integration]
agriyakhetarpal 2c5ce4b
Miscellaneous edits
agriyakhetarpal f654818
Add a CHANGELOG entry for #152
agriyakhetarpal 1b879bd
Trigger [integration] tests
agriyakhetarpal 83e6536
Resolve conflicts
agriyakhetarpal 689c284
Trigger [integration] tests
agriyakhetarpal 21562ec
Try to fix geos recipe [integration]
agriyakhetarpal 6088aba
`--fresh` is no longer needed [integration]
agriyakhetarpal 206a28e
Add type annotation for `_format_missing_dependencies`
agriyakhetarpal de93d2b
Extract away directory building logic
agriyakhetarpal 6ef79be
Extract away version control ignore even more
agriyakhetarpal 920aec7
`no_isolation` is no longer used
agriyakhetarpal ba3e8ba
Add TODO for `_create_symlink_dir` context manager
agriyakhetarpal 72474e8
Merge branch 'main' into feat/support-non-isolated-builds
agriyakhetarpal db53bdb
Trigger [integration] tests
agriyakhetarpal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| #!/bin/bash | ||
|
|
||
| # The same as "numpy.sh", but without the isolation, and | ||
| # builds both NumPy and numpy-tests from a persistent | ||
| # build directory. | ||
|
|
||
| set -e | ||
|
|
||
| VERSION="2.0.2" | ||
| URL="https://files.pythonhosted.org/packages/source/n/numpy/numpy-${VERSION}.tar.gz" | ||
|
|
||
| wget $URL | ||
| tar -xf numpy-${VERSION}.tar.gz | ||
| cd numpy-${VERSION} | ||
|
|
||
| MESON_CROSS_FILE=$(pyodide config get meson_cross_file) | ||
|
|
||
| # Build in a persistent build directory | ||
| ${UV_RUN_PREFIX} pyodide build \ | ||
| -Csetup-args=-Dallow-noblas=true \ | ||
| -Csetup-args=--cross-file="${MESON_CROSS_FILE}" \ | ||
| -Cinstall-args=--tags=runtime,python-runtime,devel \ | ||
| -Cbuild-dir="build" \ | ||
| --no-isolation --skip-dependency-check | ||
|
|
||
| sed -i 's/numpy/numpy-tests/g' pyproject.toml | ||
|
|
||
| ${UV_RUN_PREFIX} pyodide build \ | ||
| -Csetup-args=-Dallow-noblas=true \ | ||
| -Csetup-args=--cross-file="${MESON_CROSS_FILE}" \ | ||
| -Cinstall-args=--tags=tests \ | ||
| -Cbuild-dir="build" \ | ||
| --no-isolation --skip-dependency-check | ||
|
|
||
| echo "Successfully built wheels for numpy-${VERSION} and numpy-tests-${VERSION}." |
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.