Skip to content

Commit

Permalink
simpler fix for npw
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv committed Oct 9, 2024
1 parent af82f5b commit 62a5efd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test-data/recipes/env_vars/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ build:
requirements:
build:
# use to make the variant "used"
- pybind11-abi
- pybind11-abi
2 changes: 1 addition & 1 deletion test-data/recipes/env_vars/variants.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MAKEFLAGS:
- OVERRIDDEN_MAKEFLAGS
pybind11_abi:
- 4
- 4
9 changes: 7 additions & 2 deletions test/end-to-end/test_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -991,5 +991,10 @@ def test_env_vars_override(rattler_build: RattlerBuild, recipes: Path, tmp_path:
assert variant_config["pybind11_abi"] == "4"

# Check that we used the variant in the rendered recipe
rendered_recipe = yaml.safe_load((pkg / "info/recipe/rendered_recipe.yaml").read_text())
assert(rendered_recipe["finalized_dependencies"]["build"]["specs"][0] == {"variant": "pybind11-abi", "spec": "pybind11-abi 4.*"})
rendered_recipe = yaml.safe_load(
(pkg / "info/recipe/rendered_recipe.yaml").read_text()
)
assert rendered_recipe["finalized_dependencies"]["build"]["specs"][0] == {
"variant": "pybind11-abi",
"spec": "pybind11-abi 4.*",
}

0 comments on commit 62a5efd

Please sign in to comment.