Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
conda
manifest-rules
Commits
aba63973
Commit
aba63973
authored
Nov 25, 2021
by
Paul McCarthy
🚵
Browse files
Merge branch 'enh/m1' into 'master'
Enh/m1 See merge request fsl/conda/manifest-rules!38
parents
27d01e0f
6e1bd1b1
Changes
2
Hide whitespace changes
Inline
Side-by-side
manifest_rules/__init__.py
View file @
aba63973
#!/usr/bin/env python
__version__
=
'0.7.
0
'
__version__
=
'0.7.
1
'
manifest_rules/generate_environment_files.py
View file @
aba63973
#!/usr/bin/env python
#
# Generate FSL conda environment files from fsl-release.yml
#
# An environment file is created for all platforms and CUDA versions.
# Platform identifiers are taken from the FSLCONDA_PLATFORMS environment
# variable if set, or taken from the entries in the miniconda field
# from fsl-release.yml.
#
# CUDA environment files are only generated for linux-64.
import
itertools
as
it
...
...
@@ -80,9 +87,14 @@ def generate_variants(release_info):
"""Generate a list of (platform, cudaver) pairs for which an environment
file should be generated. For non-CUDA environments, cudaver will be None.
"""
cudas
=
[
None
]
+
list
(
release_info
[
'cuda'
])
platforms
=
list
(
release_info
[
'miniconda'
].
keys
())
variants
=
list
(
it
.
product
(
platforms
,
cudas
))
cudas
=
[
None
]
+
list
(
release_info
[
'cuda'
])
platforms
=
os
.
environ
.
get
(
'FSLCONDA_PLATFORMS'
,
None
)
if
platforms
is
None
:
platforms
=
list
(
release_info
[
'miniconda'
].
keys
())
else
:
platforms
=
platforms
=
platforms
.
split
(
','
)
variants
=
list
(
it
.
product
(
platforms
,
cudas
))
# CUDA builds are only supported
# on linux-64 at this time
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment