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
a15961c5
Commit
a15961c5
authored
3 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
MNT: Need to set FSL_CREATE_WRAPPER_SCRIPTS variable when updating packages
parent
9694f705
No related branches found
No related tags found
1 merge request
!49
Mnt/create wrappers var
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
share/fsl/sbin/update_fsl_package
+11
-2
11 additions, 2 deletions
share/fsl/sbin/update_fsl_package
with
11 additions
and
2 deletions
share/fsl/sbin/update_fsl_package
+
11
−
2
View file @
a15961c5
...
...
@@ -94,7 +94,8 @@ def conda(cmd : str, capture_output=True, **kwargs) -> str:
# If FSLDIR is a child env, we won't be able
# to find the conda executable. In this case,
# we have to assume that we can call "conda".
# we have to assume that "conda" is on the
# $PATH, or is defined as a shell function.
candidates = [
op.join(fsldir, 'bin', 'conda'),
op.join(fsldir, 'condabin', 'conda'),
...
...
@@ -544,11 +545,19 @@ def install_packages(packages : Sequence[Package], dry_run : bool):
packages = [f'"{p.name}={p.version}"' for p in packages]
cmd = f'install --no-deps -p {fsldir} -y ' + ' '.join(packages)
# We need to set this variable to ensure that
# FSL command wrapper scripts are created in
# $FSLDIR/share/fsl/bin/. See
# $FSLDIR/share/fsl/sbin/createFSLWrapper for
# more details.
env = os.environ.copy()
env['FSL_CREATE_WRAPPER_SCRIPTS'] = 1
print('\nInstalling packages...')
if dry_run:
print(f'Dry run - would execute {cmd}')
else:
conda(cmd, False)
conda(cmd, False
, env=env
)
def parse_args(argv : Optional[Sequence[str]]) -> argparse.Namespace:
...
...
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