summaryrefslogtreecommitdiff
path: root/pip/commands
diff options
context:
space:
mode:
authorCarl Meyer <carl@dirtcircle.com>2011-10-22 23:03:21 -0700
committerCarl Meyer <carl@dirtcircle.com>2011-10-22 23:03:21 -0700
commit9f547d0e3dc4a78c055b8b62a332f7e0c05a0a48 (patch)
tree0780b52ce6e530eb7793194d502054855a9eba00 /pip/commands
parent837404e0730cd356dadcad91a141581a539dfe78 (diff)
parent981b0f8a4c8b03cc9d25583607ef7f152b27a7f2 (diff)
downloadpip-9f547d0e3dc4a78c055b8b62a332f7e0c05a0a48.tar.gz
Merge pull request #340 from iguananaut/fix-install-defaults
Display correct defaults for pip install --help
Diffstat (limited to 'pip/commands')
-rw-r--r--pip/commands/install.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/pip/commands/install.py b/pip/commands/install.py
index 4fb340660..de467da36 100644
--- a/pip/commands/install.py
+++ b/pip/commands/install.py
@@ -80,8 +80,8 @@ class InstallCommand(Command):
'-b', '--build', '--build-dir', '--build-directory',
dest='build_dir',
metavar='DIR',
- default=None,
- help='Unpack packages into DIR (default %s) and build from there' % build_prefix)
+ default=build_prefix,
+ help='Unpack packages into DIR (default %default) and build from there')
self.parser.add_option(
'-d', '--download', '--download-dir', '--download-directory',
dest='download_dir',
@@ -98,8 +98,8 @@ class InstallCommand(Command):
'--src', '--source', '--source-dir', '--source-directory',
dest='src_dir',
metavar='DIR',
- default=None,
- help='Check out --editable packages into DIR (default %s)' % src_prefix)
+ default=src_prefix,
+ help='Check out --editable packages into DIR (default %default)')
self.parser.add_option(
'-U', '--upgrade',
@@ -169,10 +169,6 @@ class InstallCommand(Command):
mirrors=options.mirrors)
def run(self, options, args):
- if not options.build_dir:
- options.build_dir = build_prefix
- if not options.src_dir:
- options.src_dir = src_prefix
if options.download_dir:
options.no_install = True
options.ignore_installed = True