From 460ced0374655767c10be7cb33257935ed1e8b35 Mon Sep 17 00:00:00 2001 From: Daniel Holth Date: Thu, 23 May 2013 22:42:03 -0400 Subject: [PATCH] wheel: make sure destination path exists --- pip/wheel.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pip/wheel.py b/pip/wheel.py index d376c0912..7365794e7 100644 --- a/pip/wheel.py +++ b/pip/wheel.py @@ -121,6 +121,9 @@ def move_wheel_files(name, req, wheeldir, user=False, home=None): changed.add(destfile) def clobber(source, dest, is_base, fixer=None): + if not os.path.exists(dest): # common for the 'include' path + os.makedirs(dest) + for dir, subdirs, files in os.walk(source): basedir = dir[len(source):].lstrip(os.path.sep) if is_base and basedir.split(os.path.sep, 1)[0].endswith('.data'):