diff --git a/src/mpsd_software_manager/mpsd_software.py b/src/mpsd_software_manager/mpsd_software.py index 0d09055503c532abec9fe16ebdb1f58a95285788..99ac2208691dc21ee040897e5df1d88335164583 100755 --- a/src/mpsd_software_manager/mpsd_software.py +++ b/src/mpsd_software_manager/mpsd_software.py @@ -1182,7 +1182,18 @@ def remove_spack_environment(spack_dir, environment_name): def remove_spack_package(spack_dir, package): - """Remove spack package.""" + """Remove spack package. + + Used to remove global packages. + + Parameters + ---------- + spack_dir : pathlib.Path + A Path object representing the path to the spack directory. + package : str + A string representing the name of the spack package to remove. + + """ logging.info(f"Removing spack package {package}") spack_env = spack_dir / "share" / "spack" / "setup-env.sh" commands_to_execute = [