Skip to content

Commit

Permalink
Merge pull request #723 from minrk/quote-after-calling
Browse files Browse the repository at this point in the history
quote library_dir_option after calling unpatched version
  • Loading branch information
jaraco committed Aug 5, 2016
2 parents ca35cb9 + e380561 commit 740e96f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions setuptools/msvc.py
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

0 comments on commit 740e96f

Please sign in to comment.