Skip to content

Commit

Permalink
Fix conda-build >= 2.0.0 bug, closes conda-forge#28
Browse files Browse the repository at this point in the history
  • Loading branch information
basnijholt authored Sep 3, 2016
1 parent c8d2f58 commit e8bda70
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion recipe/upload_or_check_non_existence.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ def built_distribution_already_exists(cli, meta, owner):
"""
distro_name = '{}/{}.tar.bz2'.format(conda.config.subdir, meta.dist())
fname = bldpkg_path(meta)
try:
fname = bldpkg_path(meta)
except TypeError:
# conda-build >= 2.0.0 takes a config argument
from conda_build.config import Config
config = Config()
fname = bldpkg_path(meta, config)
try:
dist_info = cli.distribution(owner, meta.name(), meta.version(),
distro_name)
Expand Down

0 comments on commit e8bda70

Please sign in to comment.