Skip to content

Commit d0c7493

Browse files
committed
Don't create cbenv if it already exists
1 parent 26d3874 commit d0c7493

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

bundler/bundler.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ def build_conda_package(conda: Path, workdir: Path, targz: Path, conda_distdir:
8888
recipe_fn = recipe_dir / 'recipe.yaml'
8989
recipe_fn.write_text(recipe)
9090
cbenv = workdir / 'cbenv'
91-
sh(f"{conda} create -y -p {cbenv} rattler-build binutils")
91+
if not cbenv.exists():
92+
sh(f"{conda} create -y -p {cbenv} rattler-build binutils")
9293
sh(f"{cbenv}/bin/rattler-build build -r {recipe_fn} --output-dir {conda_distdir}")
9394

9495

0 commit comments

Comments
 (0)