Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
base
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
FSL
base
Commits
80665e12
Commit
80665e12
authored
3 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
DOC: comments about usage
parent
da2c98a3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!45
New update_fsl_package script
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
share/fsl/sbin/update_fsl_package
+10
-6
10 additions, 6 deletions
share/fsl/sbin/update_fsl_package
with
10 additions
and
6 deletions
share/fsl/sbin/update_fsl_package
+
10
−
6
View file @
80665e12
...
@@ -6,10 +6,6 @@ that have been created with the fslinstaller.py script. It is not intended to
...
@@ -6,10 +6,6 @@ that have been created with the fslinstaller.py script. It is not intended to
be used within conda environments that have had FSL packages installed into
be used within conda environments that have had FSL packages installed into
them - in this scenario, conda should be used directly.
them - in this scenario, conda should be used directly.
Currently this script cannot be used to install new packages - it is limited to
updating packages that are already installed. To install new packages, conda
should be used directly.
The script performs the following steps:
The script performs the following steps:
1. Parses command line arguments (primarily the list of packages to
1. Parses command line arguments (primarily the list of packages to
...
@@ -19,6 +15,14 @@ The script performs the following steps:
...
@@ -19,6 +15,14 @@ The script performs the following steps:
the requested packages.
the requested packages.
4. Runs "conda install" to update the packages.
4. Runs "conda install" to update the packages.
This script works on the assumption that the dependencies of FSL package will
not change - it uses the --no-deps option to the conda install command, so that
only the requested packages are updated.
Currently this script cannot be used to install new packages - it is limited to
updating packages that are already installed. To install new packages, conda
should be used directly.
"""
"""
# Note: Conda does have a Python API:
# Note: Conda does have a Python API:
#
#
...
@@ -488,8 +492,8 @@ def confirm_installation(packages : Sequence[Package], yes : bool) -> bool:
...
@@ -488,8 +492,8 @@ def confirm_installation(packages : Sequence[Package], yes : bool) -> bool:
packages.
packages.
"""
"""
rows = [('Package name', '
Currently i
nstalled', '
Updating to
'),
rows = [('Package name', '
I
nstalled', '
Available
'),
('------------', '---------
----------
', '---------
--
')]
('------------', '---------', '---------')]
# Currently all requested packages should already
# Currently all requested packages should already
# be installed, so a package should never be "n/a".
# be installed, so a package should never be "n/a".
...
...
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