コード例 #1
0
def build_null(meta):
    """
    A build function which can be used instead of a real
    build function. Quick for testing...

    """
    meta.meta.setdefault('build', {})['script'] = 'echo "Hello!"'
    build(meta, test=False)
コード例 #2
0
ファイル: build_recipes.py プロジェクト: marqh/conda-manifest
def build_null(meta):
    meta.meta.setdefault('build', {})['script'] = 'echo "Hello!"'
    build(meta, test=False)
コード例 #3
0
ファイル: build_recipes.py プロジェクト: marqh/conda-manifest
        index = resolve_index(src_index, env_sources)
        r = conda.resolve.Resolve(index)

        for meta in metas:
            stdoutlog.debug('Starting to look at: ', meta.name())
            with open(os.path.join(meta.path, 'source.json'), 'r') as fh:
                source = json.load(fh)
            source_name = source['name']
            version_matrix = vn_matrix.special_case_version_matrix(meta, index)
#            version_matrix = vn_matrix.filter_cases(version_matrix, index, env['packages'])
            for case in vn_matrix.conda_special_versions(meta, index, version_matrix):
                if meta.dist() + '.tar.bz2' not in src_index[source_name]:
                    stdoutlog.info('Building {} from {}.\n'
                                   ''.format(meta.name(), source_name))
                    with conda_build_croot_for_source(source_name):
                        print conda_bld_config.croot
                        print conda.config.rc['channels']
                        print 'BUILDING IN:', conda_bld_config.croot
                        with conda_manifest.config.pipe_check_call(os.path.join(meta.path,
                                                                               'build.{}.log'.format(conda.config.subdir))):
#                            with fixed_get_index(index):
                            build(meta, channels, test=True)
#                            src_index = compute_source_indices(env_sources)
#                            index = resolve_index(src_index, env_sources)
#                            with fixed_get_index(index):
#                                build(meta, channels, test=True)
                        
                else:
                    stdoutlog.info('Not building {} from {}, as it has already been '
                                   'built.\n'.format(meta.name(), source_name))