We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c8461e commit 78122a6Copy full SHA for 78122a6
icechunk-python/benchmarks/runner.py
@@ -229,15 +229,17 @@ def initialize(self) -> None:
229
230
ckwargs = self.get_coiled_kwargs()
231
# repeated calls are a no-op!
232
- coiled.create_software_environment(
233
- name=ckwargs["software"],
234
- workspace=ckwargs["workspace"],
235
- conda={
236
- "channels": ["conda-forge"],
237
- "dependencies": ["rust", "python=3.12", "pip"],
238
- },
239
- pip=[self.pip_github_url, "coiled", *deps],
240
- )
+ envs = coiled.list_software_environments(workspace=ckwargs["workspace"])
+ if ckwargs["software"] not in envs:
+ coiled.create_software_environment(
+ name=ckwargs["software"],
+ workspace=ckwargs["workspace"],
+ conda={
+ "channels": ["conda-forge"],
+ "dependencies": ["rust", "python=3.12", "pip"],
+ },
241
+ pip=[self.pip_github_url, "coiled", *deps],
242
+ )
243
super().initialize()
244
245
def execute(self, cmd, **kwargs):
0 commit comments