mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
wheel: make sure destination path exists
This commit is contained in:
parent
6042140a89
commit
460ced0374
1 changed files with 3 additions and 0 deletions
|
@ -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'):
|
||||
|
|
Loading…
Reference in a new issue