Skip to content

Commit 43d6042

Browse files
committed
chore: rework test virtual environment seed packages
1 parent 2fac554 commit 43d6042

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cibuildwheel/pyodide.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ def build(options: Options, tmp_path: Path) -> None:
244244
dependency_constraint_flags,
245245
build_options.environment,
246246
)
247+
pip_version = get_pip_version(env)
247248
# The Pyodide command line runner mounts all directories in the host
248249
# filesystem into the Pyodide file system, except for the custom
249250
# file systems /dev, /lib, /proc, and /tmp. Mounting the mount
@@ -293,7 +294,7 @@ def build(options: Options, tmp_path: Path) -> None:
293294
build_env["PIP_CONSTRAINT"] = " ".join(
294295
c for c in [our_constraints, user_constraints] if c
295296
)
296-
build_env["VIRTUALENV_PIP"] = get_pip_version(env)
297+
build_env["VIRTUALENV_PIP"] = pip_version
297298
call(
298299
"pyodide",
299300
"build",
@@ -342,8 +343,7 @@ def build(options: Options, tmp_path: Path) -> None:
342343
# pyodide venv uses virtualenv under the hood
343344
# use the pip embedded with virtualenv & disable network updates
344345
virtualenv_create_env = virtualenv_env.copy()
345-
virtualenv_create_env["VIRTUALENV_PIP"] = "embed"
346-
virtualenv_create_env["VIRTUALENV_DOWNLOAD"] = "0"
346+
virtualenv_create_env["VIRTUALENV_PIP"] = pip_version
347347
virtualenv_create_env["VIRTUALENV_NO_PERIODIC_UPDATE"] = "1"
348348

349349
call("pyodide", "venv", venv_dir, env=virtualenv_create_env)

0 commit comments

Comments
 (0)