Add command to create Pyodide virtual environment#2976
Add command to create Pyodide virtual environment#2976hoodmane merged 100 commits intopyodide:mainfrom
Conversation
|
Very cool! We should probably pre-install micropip here by default, same way as venv pre-installs pip. It's very impressive that |
487a4c6 to
a8336cd
Compare
|
It seems to me that the standard library
https://virtualenv.pypa.io/en/latest/ I think for this reason it is unusable for us. I have just added a script |
|
(One of the runs is not strictly checked for imports, and it seems this file is being checked in both MyPy runs. You might want to exclude it from one of them.) |
rth
left a comment
There was a problem hiding this comment.
Looking forward to this! A couple of comments otherwise LGTM.
| ] | ||
|
|
||
| for pip in other_pips: | ||
| pip.unlink() |
| dedent( | ||
| f""" | ||
| #!/bin/sh | ||
| {environment} exec {sys.executable} -m pyodide_build.out_of_tree "$@" |
There was a problem hiding this comment.
This will have to change once we migrate to the pyodide-cli but OK to do it in a separate MR.
|
@henryiii I figured out the issue: if |
|
Then you can put Not following closely, but build supports both |
|
@rth @ryanking13 getting the error: |
#3084 will fix it. |
|
Thanks a lot! |
This is work in progress. To use:
pip install pyodide-buildpyodide venv .venv-pyodidesource .venv-pyodide/bin/activepip install .[tests]orpip install -r test_requirements.txtetcpython -m pytest