Commit aba63973 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

Merge branch 'enh/m1' into 'master'

Enh/m1

See merge request fsl/conda/manifest-rules!38
parents 27d01e0f 6e1bd1b1
#!/usr/bin/env python
__version__ = '0.7.0'
__version__ = '0.7.1'
#!/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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment