From 7521d439e49a98184069707d9e1f01b96c9bc9b8 Mon Sep 17 00:00:00 2001
From: Laurent COLBOIS <laurent.colbois@idiap.ch>
Date: Tue, 28 Jun 2022 10:36:02 +0200
Subject: [PATCH] Cleanup duplicate

---
 bob/devtools/scripts/install_deps.py | 52 ----------------------------
 1 file changed, 52 deletions(-)
 delete mode 100644 bob/devtools/scripts/install_deps.py

diff --git a/bob/devtools/scripts/install_deps.py b/bob/devtools/scripts/install_deps.py
deleted file mode 100644
index ac266ddc..00000000
--- a/bob/devtools/scripts/install_deps.py
+++ /dev/null
@@ -1,52 +0,0 @@
-"""Create an environment with all external dependencies listed in bob/devtools/data/conda_build_config.yaml"""
-import click
-
-
-@click.command(
-    epilog="""Example:
-  1. Creates an environment called `myenv' containing all external bob dependencies:
-
-python bob/devtools/scripts/install_deps.py  myenv
-
-2. The version of python to solve with can be provided as option:
-
-python bob/devtools/scripts/install_deps.py  myenv --python=3.8
-
-"""
-)
-@click.argument("env_name", nargs=1)
-@click.option("--python", required=True, help="Python version to pin, e.g. 3.8")
-def install_deps(env_name, python):
-    import subprocess
-
-    from bob.devtools.build import load_packages_from_conda_build_config
-
-    conda_config_path = "bob/devtools/data/conda_build_config.yaml"
-
-    packages, package_names_map = load_packages_from_conda_build_config(
-        conda_config_path, {"channels": []}, with_pins=True
-    )
-
-    # ask mamba to create an environment with the packages
-    try:
-        _ = subprocess.run(
-            [
-                "mamba",
-                "create",
-                "--override-channels",
-                "-c",
-                "conda-forge",
-                "-n",
-                env_name,
-                f"python={python}",
-            ]
-            + packages,
-            check=True,
-        )
-    except subprocess.CalledProcessError as e:
-        print(e.output.decode())
-        raise e
-
-
-if __name__ == "__main__":
-    install_deps()
-- 
GitLab