Skip to content
Snippets Groups Projects
Commit 80665e12 authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

DOC: comments about usage

parent da2c98a3
No related branches found
No related tags found
1 merge request!45New update_fsl_package script
...@@ -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 installed', 'Updating to'), rows = [('Package name', 'Installed', '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".
......
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