Skip to content
Snippets Groups Projects
Commit 795802bf authored by Ashwin Kumar Karnad's avatar Ashwin Kumar Karnad
Browse files

add doc string to remove_spack_package

parent ee8d8578
No related branches found
No related tags found
1 merge request!82Remove cmd
This commit is part of merge request !82. Comments created here will be created in the context of that merge request.
...@@ -1182,7 +1182,18 @@ def remove_spack_environment(spack_dir, environment_name): ...@@ -1182,7 +1182,18 @@ def remove_spack_environment(spack_dir, environment_name):
def remove_spack_package(spack_dir, package): 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}") logging.info(f"Removing spack package {package}")
spack_env = spack_dir / "share" / "spack" / "setup-env.sh" spack_env = spack_dir / "share" / "spack" / "setup-env.sh"
commands_to_execute = [ commands_to_execute = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment