-
Notifications
You must be signed in to change notification settings - Fork 21
Stop excluding unisolated packages from build dependencies #21
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
Draft
ryanking13
wants to merge
20
commits into
pyodide:main
Choose a base branch
from
ryanking13:no-host-site
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 9 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
1dc34fd
Update cross build installation mechanism
ryanking13 ee09707
Fix symlink
ryanking13 c806c05
type
ryanking13 033e552
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 797e605
Merge remote-tracking branch 'upstream/main' into no-host-site
ryanking13 c8f4663
cleanup [integration]
ryanking13 821cef1
Merge branch 'no-host-site' of https://github.com/ryanking13/pyodide-…
ryanking13 6521bef
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 0ec228c
Merge branch 'main' into no-host-site
ryanking13 f039816
Add more test
ryanking13 5b49ad5
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 221f9ea
changelog
ryanking13 10edfb7
More integration test files [integration]
ryanking13 a18357d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 611ed7b
exclude patchfile from codespell
ryanking13 9ec8e60
[integration]
ryanking13 f962cc4
Remove integration tests from pre-commit check
ryanking13 54efacc
Fix integration test [integration]
ryanking13 2f5bc3b
Remove uncessery arg
ryanking13 0feb9aa
Force install cross-build package even if version mismatches [integra…
ryanking13 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
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 |
---|---|---|
|
@@ -205,33 +205,6 @@ def test_install_force( | |
assert (tmp_path / version / ".installed").exists() | ||
assert manager.current_version == version | ||
|
||
def test_install_cross_build_packages( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It feels like we could use an updated version of this test? |
||
self, tmp_path, dummy_xbuildenv_url, monkeypatch_subprocess_run_pip | ||
): | ||
pip_called_with = monkeypatch_subprocess_run_pip | ||
manager = CrossBuildEnvManager(tmp_path) | ||
|
||
download_path = tmp_path / "test" | ||
manager._download(dummy_xbuildenv_url, download_path) | ||
|
||
xbuildenv_root = download_path / "xbuildenv" | ||
xbuildenv_pyodide_root = xbuildenv_root / "pyodide-root" | ||
manager._install_cross_build_packages(xbuildenv_root, xbuildenv_pyodide_root) | ||
|
||
assert len(pip_called_with) == 7 | ||
assert pip_called_with[0:4] == ["pip", "install", "--no-user", "-t"] | ||
assert pip_called_with[4].startswith( | ||
str(xbuildenv_pyodide_root) | ||
) # hostsitepackages | ||
assert pip_called_with[5:7] == ["-r", str(xbuildenv_root / "requirements.txt")] | ||
|
||
hostsitepackages = manager._host_site_packages_dir(xbuildenv_pyodide_root) | ||
assert hostsitepackages.exists() | ||
|
||
cross_build_files = xbuildenv_root / "site-packages-extras" | ||
for file in cross_build_files.iterdir(): | ||
assert (hostsitepackages / file.name).exists() | ||
|
||
def test_create_package_index(self, tmp_path, dummy_xbuildenv_url): | ||
manager = CrossBuildEnvManager(tmp_path) | ||
|
||
|
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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So this is trying to get
cross-build-files
? How does it work in tree? Shouldn't we look atcross-build-files
inmeta.yaml
in that case?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also,
site-packages-extras
maybe should have been calledsite-packages-cross-files
or something a bit more descriptive...There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As you can see in the
buildpkg.py
change, only cross-build-files are installed under the hostsitepackages on in-tree build (I think there are some room to optimize this logic though).Totally agree, but the folder
site-packages-extras
is generated when creating the xbuildenv, so we'll need to fix there too.