Commit 335196c6 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

Merge branch 'bf/package_format' into 'master'

BF: Was re-generating environment file with dependencies as "- <pkg>=<ver>" instead of "- <pkg> <ver>"

See merge request fsl/conda/manifest-rules!17
parents 85f35912 ef65ea32
#!/usr/bin/env python
__version__ = '0.4.0'
__version__ = '0.4.1'
......@@ -27,11 +27,6 @@ def preprocess_environment(envfile, condadir, regen_envfile=False):
packages = env['dependencies']
channels = env['channels']
for i, pkg in enumerate(packages):
pkg, ver = pkg.split()
packages[i] = f'{pkg}={ver}'
with open(op.join(condadir, 'condarc'), 'wt') as f:
f.write('channels:\n')
for c in channels:
......@@ -46,6 +41,10 @@ def preprocess_environment(envfile, condadir, regen_envfile=False):
for p in packages:
f.write(f' - {p}\n')
for i, pkg in enumerate(packages):
pkg, ver = pkg.split()
packages[i] = f'{pkg}={ver}'
return packages
......
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