1
0
Fork 0

Adding upstream version 3.1.1.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-09 21:38:22 +01:00
parent 897eb1bb2a
commit 1a4d9cedd3
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
3 changed files with 15 additions and 2 deletions

View file

@ -142,10 +142,15 @@ def install_environment(
else:
packages_to_install.add((package,))
with in_env(prefix, version):
with contextlib.ExitStack() as ctx:
ctx.enter_context(in_env(prefix, version))
if version != 'system':
install_rust_with_toolchain(_rust_toolchain(version))
tmpdir = ctx.enter_context(tempfile.TemporaryDirectory())
ctx.enter_context(envcontext((('RUSTUP_HOME', tmpdir),)))
if len(lib_deps) > 0:
_add_dependencies(prefix, lib_deps)