2022-09-25 01:34:36 +00:00
|
|
|
from pathlib import Path
|
|
|
|
|
2023-01-14 13:59:42 +00:00
|
|
|
import typer
|
2022-09-25 01:34:36 +00:00
|
|
|
|
2023-06-26 12:20:12 +00:00
|
|
|
from ..build_env import init_environment
|
2022-09-25 01:34:36 +00:00
|
|
|
from ..out_of_tree import venv
|
|
|
|
|
|
|
|
|
|
|
|
def main(
|
|
|
|
dest: Path = typer.Argument(
|
|
|
|
...,
|
|
|
|
help="directory to create virtualenv at",
|
|
|
|
),
|
|
|
|
) -> None:
|
|
|
|
"""Create a Pyodide virtual environment"""
|
2023-06-05 08:34:07 +00:00
|
|
|
init_environment()
|
2022-09-25 01:34:36 +00:00
|
|
|
venv.create_pyodide_venv(dest)
|