diff options
author | 2017-06-11 14:33:57 +0300 | |
---|---|---|
committer | 2017-06-11 14:33:57 +0300 | |
commit | 04387deeab820e75c6d37d2ddd5b514cb7bcfd9e (patch) | |
tree | 2f4dfacba74ec390c4371c62dc96af2b1d5f19ef /jython-tosca-parser/src/main/resources/Lib/site-packages/pip/commands/bundle.py | |
parent | fff70fce14ebe7dec3a4d52b7b90cee4414d0562 (diff) |
[SDC-32] separate Tosca Parser from DC
Change-Id: I7e7f31ff2bd92fec22031f75b7051d129a21d01b
Signed-off-by: Pavel Aharoni <pa0916@att.com>
Diffstat (limited to 'jython-tosca-parser/src/main/resources/Lib/site-packages/pip/commands/bundle.py')
-rw-r--r-- | jython-tosca-parser/src/main/resources/Lib/site-packages/pip/commands/bundle.py | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/jython-tosca-parser/src/main/resources/Lib/site-packages/pip/commands/bundle.py b/jython-tosca-parser/src/main/resources/Lib/site-packages/pip/commands/bundle.py deleted file mode 100644 index 52b4f19..0000000 --- a/jython-tosca-parser/src/main/resources/Lib/site-packages/pip/commands/bundle.py +++ /dev/null @@ -1,50 +0,0 @@ -from pip.locations import build_prefix, src_prefix -from pip.util import display_path, backup_dir -from pip.log import logger -from pip.exceptions import InstallationError -from pip.commands.install import InstallCommand - - -class BundleCommand(InstallCommand): - """Create pybundles (archives containing multiple packages).""" - name = 'bundle' - usage = """ - %prog [options] <bundle name>.pybundle <package>...""" - summary = 'DEPRECATED. Create pybundles.' - bundle = True - - def __init__(self, *args, **kw): - super(BundleCommand, self).__init__(*args, **kw) - # bundle uses different default source and build dirs - build_opt = self.parser.get_option("--build") - build_opt.default = backup_dir(build_prefix, '-bundle') - src_opt = self.parser.get_option("--src") - src_opt.default = backup_dir(src_prefix, '-bundle') - self.parser.set_defaults(**{ - src_opt.dest: src_opt.default, - build_opt.dest: build_opt.default, - }) - - def run(self, options, args): - - logger.deprecated( - '1.6', - "DEPRECATION: 'pip bundle' and support for installing from " - "*.pybundle files is deprecated. " - "See https://github.com/pypa/pip/pull/1046" - ) - - if not args: - raise InstallationError('You must give a bundle filename') - # We have to get everything when creating a bundle: - options.ignore_installed = True - logger.notify( - 'Putting temporary build files in %s and source/develop files in ' - '%s' % ( - display_path(options.build_dir), - display_path(options.src_dir) - ) - ) - self.bundle_filename = args.pop(0) - requirement_set = super(BundleCommand, self).run(options, args) - return requirement_set |