aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/msvc.py
diff options
context:
space:
mode:
authorMin RK <benjaminrk@gmail.com>2016-08-05 12:58:47 +0200
committerMin RK <benjaminrk@gmail.com>2016-08-05 12:58:47 +0200
commite3805614a5ed770d3ba86acd339a24947c19a65b (patch)
tree5b0d81d8d70cf1e84e607fe1e263d9241bb38f91 /setuptools/msvc.py
parentca35cb9ef3d78a24e8c9f34bec84bfa42706411f (diff)
downloadexternal_python_setuptools-e3805614a5ed770d3ba86acd339a24947c19a65b.tar.gz
external_python_setuptools-e3805614a5ed770d3ba86acd339a24947c19a65b.tar.bz2
external_python_setuptools-e3805614a5ed770d3ba86acd339a24947c19a65b.zip
quote library_dir_option after calling unpatched version
avoids double-quotes if the calling function does the quoting correctly.
Diffstat (limited to 'setuptools/msvc.py')
-rw-r--r--setuptools/msvc.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/setuptools/msvc.py b/setuptools/msvc.py
index 2700a2b0..97dd441c 100644
--- a/setuptools/msvc.py
+++ b/setuptools/msvc.py
@@ -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=''):