Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mpsd-software-manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MPSD Computational Science
mpsd-software-manager
Commits
14d157c9
Commit
14d157c9
authored
1 year ago
by
Hans Fangohr
Committed by
Ashwin Kumar Karnad
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Apply suggestions from Hans
parent
091e3853
No related branches found
No related tags found
1 merge request
!82
Remove cmd
Pipeline
#385497
passed
1 year ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/mpsd_software_manager/mpsd_software.py
+3
-2
3 additions, 2 deletions
src/mpsd_software_manager/mpsd_software.py
with
3 additions
and
2 deletions
src/mpsd_software_manager/mpsd_software.py
+
3
−
2
View file @
14d157c9
...
@@ -1082,7 +1082,7 @@ def remove_environment(mpsd_release, root_dir, package_sets="NONE", force_remove
...
@@ -1082,7 +1082,7 @@ def remove_environment(mpsd_release, root_dir, package_sets="NONE", force_remove
"""
Remove release from installation.
"""
Remove release from installation.
Handle 3 situations :
Handle 3 situations :
1. remove do
sen
t specify what to remove
1. remove do
es no
t specify what to remove
-> warn and exit
-> warn and exit
2. remove all package_sets from release
2. remove all package_sets from release
-> remove release folder except logs
-> remove release folder except logs
...
@@ -1097,7 +1097,7 @@ def remove_environment(mpsd_release, root_dir, package_sets="NONE", force_remove
...
@@ -1097,7 +1097,7 @@ def remove_environment(mpsd_release, root_dir, package_sets="NONE", force_remove
A Path object representing the path to the directory where
A Path object representing the path to the directory where
the release and package_sets will be installed.
the release and package_sets will be installed.
package_sets : list of str
package_sets : list of str
A list of strings representing the package_sets to
install
A list of strings representing the package_sets to
remove
(e.g.,
"
foss2021a-mpi
"
,
"
global_generic
"
,
"
ALL
"
).
(e.g.,
"
foss2021a-mpi
"
,
"
global_generic
"
,
"
ALL
"
).
force_remove : bool, optional
force_remove : bool, optional
A boolean indicating whether to force remove the release.
A boolean indicating whether to force remove the release.
...
@@ -1190,6 +1190,7 @@ def remove_spack_environment(spack_dir, environment_name, build_log_path=None):
...
@@ -1190,6 +1190,7 @@ def remove_spack_environment(spack_dir, environment_name, build_log_path=None):
then uninstall all packages exclusive to the environment,
then uninstall all packages exclusive to the environment,
then deactivate the environment,
then deactivate the environment,
and finally remove the environment.
and finally remove the environment.
Parameters
Parameters
----------
----------
spack_dir : pathlib.Path
spack_dir : pathlib.Path
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment