@@ -244,6 +244,7 @@ def build(options: Options, tmp_path: Path) -> None:
244
244
dependency_constraint_flags ,
245
245
build_options .environment ,
246
246
)
247
+ pip_version = get_pip_version (env )
247
248
# The Pyodide command line runner mounts all directories in the host
248
249
# filesystem into the Pyodide file system, except for the custom
249
250
# file systems /dev, /lib, /proc, and /tmp. Mounting the mount
@@ -293,7 +294,7 @@ def build(options: Options, tmp_path: Path) -> None:
293
294
build_env ["PIP_CONSTRAINT" ] = " " .join (
294
295
c for c in [our_constraints , user_constraints ] if c
295
296
)
296
- build_env ["VIRTUALENV_PIP" ] = get_pip_version ( env )
297
+ build_env ["VIRTUALENV_PIP" ] = pip_version
297
298
call (
298
299
"pyodide" ,
299
300
"build" ,
@@ -342,8 +343,7 @@ def build(options: Options, tmp_path: Path) -> None:
342
343
# pyodide venv uses virtualenv under the hood
343
344
# use the pip embedded with virtualenv & disable network updates
344
345
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
347
347
virtualenv_create_env ["VIRTUALENV_NO_PERIODIC_UPDATE" ] = "1"
348
348
349
349
call ("pyodide" , "venv" , venv_dir , env = virtualenv_create_env )
0 commit comments