Пример #1
0
    def bundle(args):
        '''
        Create bundles (like Pip's ones)
        '''

        if isinstance(args.index_url, ITERABLE_T):
            args.index_url = args.index_url[0]
        args_manager['install']['packages_url'] = args.index_url + '/simple'
        args_manager['install']['index_url'] = args.index_url + '/pypi'

        if args.exclude:
            args_manager['bundle']['exclude'] = args.exclude
        if args.use_develop:
            args_manager['bundle']['use_develop'] = True
        exclude, use_develop = args_manager['bundle']['exclude'], args_manager['bundle']['use_develop']
        opts.bundle_func(args.packages, args.bundlename, exclude, args.req_file, use_develop)