Skip to content

Conversation

@ryanking13
Copy link
Member

This PR changes our build dependencies to only install resolvelib and enearch when [resolve] extra is given such as

pip install pyodide-build[resolve]

Those packages are used for dependency resolution when building packages, which is not a very common usecase. I would like to slowly deprecate that feature after we are able to publish emscripten packages to PyPI.

  • changelog

@ryanking13 ryanking13 added the integration This PR will run the integration tests. This label can be used as a persistent marker to do so. label Dec 19, 2025
@ryanking13
Copy link
Member Author

cc: @joemarshall

run: |
python -m pip install --upgrade pip
pip install -e ".[test]"
pip install -e ".[test,resolve]"
Copy link
Member

Choose a reason for hiding this comment

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

Not for this PR, but how do you feel about switching to dependency groups instead of optional dependencies (for the test dependencies only, not resolve)?

Comment on lines +62 to +63
print(str(e), file=sys.stderr)
sys.exit(1)
Copy link
Member

Choose a reason for hiding this comment

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

I am aware that we use this pattern in quite a few places where we don't use a logger, but how do you feel about changing it to this:

Suggested change
print(str(e), file=sys.stderr)
sys.exit(1)
sys.exit(str(e))

sys.exit() with a string exits with exit code 1 by default.

(and same in the other places in this PR)

@@ -28,8 +28,6 @@ dependencies = [
"rich",
"platformdirs",
# TODO: make this a extra dependency
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
# TODO: make this a extra dependency

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integration This PR will run the integration tests. This label can be used as a persistent marker to do so.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants