summaryrefslogtreecommitdiff
path: root/pip/commands
diff options
context:
space:
mode:
authorStavros Korokithakis <stavros@korokithakis.net>2012-02-03 13:22:51 +0200
committerStavros Korokithakis <stavros@korokithakis.net>2012-02-03 13:22:51 +0200
commiteb03ec0dc15c0ead26bdc2df61d38d5ae1e7077a (patch)
tree6d1e49f3b040c4cbb4b5de65669e0fad798792ef /pip/commands
parent176d3a266313d69c6303381907cb864464cf4b3a (diff)
downloadpip-eb03ec0dc15c0ead26bdc2df61d38d5ae1e7077a.tar.gz
Remove temporary directory, reduce option parameters.
Diffstat (limited to 'pip/commands')
-rw-r--r--pip/commands/install.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pip/commands/install.py b/pip/commands/install.py
index b6cfa3492..af03912d5 100644
--- a/pip/commands/install.py
+++ b/pip/commands/install.py
@@ -85,7 +85,7 @@ class InstallCommand(Command):
default=build_prefix,
help='Unpack packages into DIR (default %default) and build from there')
self.parser.add_option(
- '-t', '--target', '--target-dir', '--target-directory',
+ '-t', '--target',
dest='target_dir',
metavar='DIR',
default=None,
@@ -268,6 +268,7 @@ class InstallCommand(Command):
lib_dir = os.path.join(temp_target_dir, "lib/python/")
for item in os.listdir(lib_dir):
shutil.move(os.path.join(lib_dir, item), options.target_dir)
+ shutil.rmtree(temp_target_dir)
return requirement_set