-
Notifications
You must be signed in to change notification settings - Fork 22
Add some short installation and usage instructions #107
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
base: main
Are you sure you want to change the base?
Changes from 3 commits
593493b
18f09e3
c39dde4
bca1870
b7708ff
3ec2ab2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -5,6 +5,50 @@ Tools for building Pyodide. | |||||||||||
| See [http://github.com/pyodide/pyodide](http://github.com/pyodide/pyodide) for | ||||||||||||
| more information. | ||||||||||||
|
|
||||||||||||
| ## Quickstart | ||||||||||||
|
|
||||||||||||
| ### Usage | ||||||||||||
|
|
||||||||||||
| > [!TIP] | ||||||||||||
| > Currently, installing `pyodide-build` is preferred to running it. | ||||||||||||
|
|
||||||||||||
| #### Install it | ||||||||||||
|
|
||||||||||||
| ```bash | ||||||||||||
| pip install pyodide-build | ||||||||||||
| pyodide --help | ||||||||||||
| pyodide build --help | ||||||||||||
agriyakhetarpal marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||||||
| ``` | ||||||||||||
|
|
||||||||||||
| #### Install it globally | ||||||||||||
|
|
||||||||||||
| ```bash | ||||||||||||
| pipx install --include-deps pyodide-build | ||||||||||||
| pyodide --help | ||||||||||||
| pyodide build --help | ||||||||||||
| ``` | ||||||||||||
|
|
||||||||||||
| or, alternatively | ||||||||||||
|
|
||||||||||||
| ```bash | ||||||||||||
| pipx install pyodide-cli | ||||||||||||
| pipx inject pyodide-cli pyodide-build | ||||||||||||
| pyodide --help | ||||||||||||
| pyodide build --help | ||||||||||||
| ``` | ||||||||||||
|
|
||||||||||||
| > [!NOTE] | ||||||||||||
| > If installing `pyodide-build` and its dependencies in virtual environments, we recommend | ||||||||||||
| using ones that are managed by `venv` or `virtualenv` at the moment; see #58. | ||||||||||||
|
||||||||||||
| > [!NOTE] | |
| > If installing `pyodide-build` and its dependencies in virtual environments, we recommend | |
| using ones that are managed by `venv` or `virtualenv` at the moment; see #58. | |
| > [!NOTE] | |
| > Currently `pyodide-build` does not work well in environments managed by uv, see #58. |
I think this is the only thing in this PR that is appropriate for a readme. I think this adds a lot of noise, people can use pipx or uvx or venv or install pyodide-build globally or use whatever tools as they prefer. The readme isn't a tutorial on Python installer workflows.
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.
Makes sense to me, thanks!
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.
What does this mean? I usually don't have the question "should I install this or should I run it" because usually I have to install first in order to run?
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.
Ah, I meant to convey that users are better off installing
pyodide-build(globally or in a virtual environment) rather than trying to usepipxoruvx(instructions for which are provided for completeness). I'll try to reword this sentence.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.
I hope 3ec2ab2 conveys the meaning better!