Skip to content

Commit

Permalink
Added quick fix to issue #21
Browse files Browse the repository at this point in the history
  • Loading branch information
Hogfeldt committed Apr 9, 2019
1 parent 539f590 commit 2f5d0bc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/bioconda_recipe_gen/recipe.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from . import make_dict

build_tools = ['cmake', 'make', 'autoconf']
libs = ['hdf5', 'zlib']

class Recipe:
""" Represents a meta.yaml recipe file """
Expand All @@ -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)

0 comments on commit 2f5d0bc

Please sign in to comment.