Skip to content

Commit

Permalink
allow conda scripts to be present when package name is conda
Browse files Browse the repository at this point in the history
  • Loading branch information
msarahan committed Apr 8, 2017
1 parent 5d018f6 commit deb1cb1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions conda_build/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -678,8 +678,10 @@ def bundle_conda(output, metadata, env, **kw):

files = post_process_files(metadata, initial_files)

assert 'bin/conda' not in files and 'Scripts/conda.exe' not in files, ("Bug in conda-build has "
"included conda binary in package. Please report this on the conda-build issue tracker.")
if output.get('name') and output.get('name') != 'conda':
assert 'bin/conda' not in files and 'Scripts/conda.exe' not in files, ("Bug in conda-build "
"has included conda binary in package. Please report this on the conda-build issue "
"tracker.")

output_filename = ('-'.join([output['name'], metadata.version(),
metadata.build_id()]) + '.tar.bz2')
Expand Down

0 comments on commit deb1cb1

Please sign in to comment.