Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions setuptools/msvc.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,11 @@ def msvc14_library_dir_option(self, dir):
------
"\LIBPATH" argument: str
"""
if ' ' in dir and '"' not in dir:
opt = unpatched['msvc14_library_dir_option'](self, dir)
if ' ' in opt and '"' not in opt:
# Quote if space and not already quoted
dir = '"%s"' % dir
return unpatched['msvc14_library_dir_option'](self, dir)
opt = '"%s"' % opt
return opt


def _augment_exception(exc, version, arch=''):
Expand Down