Beispiel #1
0
def source_metas(sources):
    """
    Given the sources, return a dictionary of all conda recipes
    keyed by source name.

    """
    # Map source name to location of source.
    source_dict = {source_name: os.path.join(conda_manifest.config.build_root,
                                             source_name)
                   for source_name, source in sources.items()}
    # Map source name to all metas within the source.
    source_metas = {src: list(find_all_recipes([source_dict[src]]))
                    for src in sources}
    return source_metas
Beispiel #2
0
        for sources in env_sources:
            for source_name in sources:
                source_build_directory = conda_manifest.config.src_distributions_dir(source_name)
                s = os.path.join(source_build_directory, conda.config.subdir)
                if not os.path.exists(s):
                    os.makedirs(s)
                    import conda_build.index
                    conda_build.index.update_index(s)
                channels.append(url_path(source_build_directory))

        conda.config.rc['channels'] = channels
        print 'Channels:', channels

        env_recipe_dir = conda_manifest.config.env_recipes_dir(env=env)

        metas = list(find_all_recipes([env_recipe_dir]))
        stdoutlog.debug('Found the following recipes:\n{}\n-------------------'
                        ''.format('\n'.join(meta.name() for meta in metas)))

        metas = sort_dependency_order(metas)
        stdoutlog.debug('Metas sorted into the following order:\n{}\n---------'
                        ''.format('\n'.join(meta.name() for meta in metas)))

        src_index = {}

        src_index = compute_source_indices(env_sources)
        index = resolve_index(src_index, env_sources)
        r = conda.resolve.Resolve(index)

        for meta in metas:
            stdoutlog.debug('Starting to look at: ', meta.name())