Skip to content
Snippets Groups Projects
Unverified Commit 4aaa9654 authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

app_manager: Only compile the frozen deps without installing them

It's also twice as fast as before (from 10 to 5s).
parent 771a3581
No related branches found
No related tags found
1 merge request!46app_manager: Use more efficient uv cli instead of pip
......@@ -115,11 +115,8 @@ def generate_requirements_frozen(app: str, absolute_apps_dirpath: Path) -> None:
with tempfile.TemporaryDirectory(prefix=app) as envdir:
builder = AppEnvBuilder.bootstrap_venv(envdir)
builder.run_pip("install", "-r", str(src_req_file))
freeze_output = builder.run_pip("freeze", capture_output=True)
with tempfile.NamedTemporaryFile(mode="wb", dir=app_dir, delete=False) as f:
f.write(freeze_output.stdout)
builder.run_pip("compile", str(src_req_file), "-o", f.name)
p = Path(f.name)
p.chmod(0o644)
p.rename(dst_req_file)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment