New update_fsl_package script
Compare changes
- Paul McCarthy authored
upgrade of already-installed packages.
+ 153
− 109
@@ -42,7 +46,7 @@ import urllib.parse as urlparse
@@ -52,17 +56,23 @@ PUBLIC_FSL_CHANNEL = 'https://fsl.fmrib.ox.ac.uk/fsldownloads/fslconda/public/
@@ -94,16 +104,41 @@ def identify_platform() -> str:
@@ -140,56 +175,6 @@ class Version:
@@ -202,34 +187,27 @@ class Package:
@@ -244,6 +222,39 @@ class Package:
@@ -296,14 +307,19 @@ def download_channel_metadata(channel_url : str, **kwargs) -> Tuple[Dict, Dict]:
@@ -338,7 +354,7 @@ def identify_packages(channeldata : List[Tuple[Dict, Dict]],
@@ -346,15 +362,57 @@ def identify_packages(channeldata : List[Tuple[Dict, Dict]],
@@ -383,22 +441,22 @@ def install_packages(packages : Sequence[Package]):
@@ -408,8 +466,8 @@ def parse_args(argv : Optional[Sequence[str]]) -> argparse.Namespace:
@@ -427,7 +485,8 @@ def main(argv : Sequence[str] = None):
@@ -442,37 +501,22 @@ def main(argv : Sequence[str] = None):