summaryrefslogtreecommitdiff
path: root/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/bundle.py
diff options
context:
space:
mode:
authorcoderick142017-05-17 15:40:18 +0530
committercoderick142017-05-17 15:41:00 +0530
commita1e0a5502f04da68b6a9ca8508dda3f9d7e1d055 (patch)
tree20181e6b1936f50ad48d8e35720d64a37566f558 /lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/bundle.py
parent6f4a84c1e58ff4d54aab94cbee26e995328b05b8 (diff)
downloadSBHS-2018-Rpi-a1e0a5502f04da68b6a9ca8508dda3f9d7e1d055.tar.gz
SBHS-2018-Rpi-a1e0a5502f04da68b6a9ca8508dda3f9d7e1d055.tar.bz2
SBHS-2018-Rpi-a1e0a5502f04da68b6a9ca8508dda3f9d7e1d055.zip
Upgrade to Django 1.11
- Database integration yet to be tested
Diffstat (limited to 'lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/bundle.py')
-rw-r--r--lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/bundle.py38
1 files changed, 0 insertions, 38 deletions
diff --git a/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/bundle.py b/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/bundle.py
deleted file mode 100644
index f782f1b..0000000
--- a/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/bundle.py
+++ /dev/null
@@ -1,38 +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):
- name = 'bundle'
- usage = '%prog [OPTIONS] BUNDLE_NAME.pybundle PACKAGE_NAMES...'
- summary = 'Create pybundles (archives containing multiple packages)'
- bundle = True
-
- def __init__(self):
- super(BundleCommand, self).__init__()
- # 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):
- 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
-
-
-BundleCommand()