From 2f5d0bc21c210c558f7524fc289d5ba7cc6fbc3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20H=C3=B8gfeldt?= Date: Tue, 9 Apr 2019 13:11:13 +0200 Subject: [PATCH] Added quick fix to issue #21 --- src/bioconda_recipe_gen/recipe.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/bioconda_recipe_gen/recipe.py b/src/bioconda_recipe_gen/recipe.py index 11503df..ab16f87 100644 --- a/src/bioconda_recipe_gen/recipe.py +++ b/src/bioconda_recipe_gen/recipe.py @@ -1,5 +1,7 @@ from . import make_dict +build_tools = ['cmake', 'make', 'autoconf'] +libs = ['hdf5', 'zlib'] class Recipe: """ Represents a meta.yaml recipe file """ @@ -19,6 +21,10 @@ def add_requirement(self, pack_name, type_of_requirement): pack_name: Name of the package to add type_of_requirement: Specify were you want to add the package "host", "build" or "run" """ + if type_of_requirement == 'build' and pack_name in libs: + return + elif type_of_requirement == 'host' and pack_name in build_tools: + return curr_list = self.recipe_dict["requirements"].setdefault(type_of_requirement, []) if pack_name not in curr_list: curr_list.append(pack_name)