From 7041780d782b262f93f7d85163236e5470272f33 Mon Sep 17 00:00:00 2001 From: github-saad-elmahfoudi Date: Tue, 5 Apr 2022 12:11:19 +0200 Subject: [PATCH] fix support for tag.gz extension in conda environment --- cluster_pack/packaging.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster_pack/packaging.py b/cluster_pack/packaging.py index 65b2c74..be8a9e3 100644 --- a/cluster_pack/packaging.py +++ b/cluster_pack/packaging.py @@ -278,7 +278,7 @@ def detect_archive_names( package_path = (f"{get_default_fs()}/user/{getpass.getuser()}" f"/envs/{env_name}.{packer.extension()}") else: - if "".join(os.path.splitext(package_path)[1]) != f".{packer.extension()}": + if not package_path.endswith(packer.extension()): raise ValueError(f"{package_path} has the wrong extension" f", .{packer.extension()} is expected")