Skip to content

Commit

Permalink
Add support for function-recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
moradology committed Feb 9, 2024
1 parent aeea942 commit 9601ec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pangeo_forge_runner/commands/bake.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def start(self):

# if pangeo-forge-recipes is <=0.9, we have to specify a requirements.txt
# file even if it isn't present, as the image used otherwise will not have pangeo-forge-recipes
if isinstance(recipe, PTransform):
if isinstance(recipe, PTransform) or inspect.isfunction(recipe):
requirements_path = feedstock.feedstock_dir / "requirements.txt"
if requirements_path.exists():
extra_options["requirements_file"] = str(requirements_path)
Expand Down

0 comments on commit 9601ec4

Please sign in to comment.