Skip to content

Commit 52e748c

Browse files
committed
Merge pull request #19 from mwcraig/fix-changed-conda-build-api
Accommodate API change in conda build
2 parents ab073fc + 0a2ff64 commit 52e748c

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

conda_build_all/build.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,19 @@
1919
def build(meta, test=True):
2020
"""Build (and optionally test) a recipe directory."""
2121
with Locked(conda_build.config.croot):
22+
# Check whether verbose is a module-level variable in
23+
# this version of conda_build and set it properly if it is.
24+
if 'verbose' in dir(build_module):
25+
build_module.verbose = False
26+
kwd = {}
27+
else:
28+
kwd = {'verbose': False}
2229
meta.check_fields()
2330
if os.path.exists(conda_build.config.config.info_dir):
2431
shutil.rmtree(conda_build.config.config.info_dir)
25-
build_module.build(meta, verbose=False, post=None)
32+
build_module.build(meta, post=None, **kwd)
2633
if test:
27-
build_module.test(meta, verbose=False)
34+
build_module.test(meta, **kwd)
2835
return meta
2936

3037

0 commit comments

Comments
 (0)