Skip to content

Commit

Permalink
add additional hack for smithy
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv committed Feb 16, 2022
1 parent 0fdf9af commit 1995ad8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 0 additions & 4 deletions boa/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,9 @@ def render(recipe_dir, platform, arch,
recipe_path = Path(recipe_dir) / "recipe.yaml"
ydoc = core_render(recipe_path, config)

print("\n\n\nVARIANTS!!!\n\n", variants)
# this takes in all variants and outputs, builds a dependency tree and returns
# the final metadata

print(config)
print(cbc)

assembled_variants = {}
# if we have a outputs section, use that order the outputs
if ydoc.get("outputs"):
Expand Down
7 changes: 7 additions & 0 deletions boa/core/recipe_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ def __init__(
parent = {}
if selected_features is None:
selected_features = {}

self.data = d
self.data["source"] = d.get("source", parent.get("source", {}))
self.config = config
Expand All @@ -182,7 +183,13 @@ def set_section(sname):
set_section("build")
set_section("package")
set_section("app")

# TODO this is a hack ...
set_section("extra")
set_section("about")
self.data["extra"] = self.sections["extra"]
self.data["about"] = self.sections["about"]

set_section("test")

self.sections["files"] = d.get("files")
Expand Down

0 comments on commit 1995ad8

Please sign in to comment.