Commit 76bd12b5 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

BF: Handle build variants in tests

parent ef9d9df7
......@@ -42,7 +42,17 @@ def preprocess_environment(envfile, condadir, regen_envfile=False):
f.write(f' - {p}\n')
for i, pkg in enumerate(packages):
pkg, ver = pkg.split()
# package specs are of the form
# <package> <version>
# or
# <package> <version> <variant>
#
# and are transformed into the form
# <package>=<version>
# or
# <package>=<version>=<variant>
pkg, ver = pkg.split(maxsplit=2)
ver = ver.replace(' ', '=')
packages[i] = f'{pkg}={ver}'
return packages
......
Markdown is supported
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