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
76bd12b5
Commit
76bd12b5
authored
Oct 19, 2021
by
Paul McCarthy
🚵
Browse files
BF: Handle build variants in tests
parent
ef9d9df7
Changes
1
Hide whitespace changes
Inline
Side-by-side
manifest_rules/test_environment.py
View file @
76bd12b5
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
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