aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/msvc.py
diff options
context:
space:
mode:
authorJ. Goutin <JGoutin@users.noreply.github.com>2016-08-04 12:22:54 +0200
committerGitHub <noreply@github.com>2016-08-04 12:22:54 +0200
commit7b1fa7643e2599f24956323a2066a6e26dc57b82 (patch)
treee20307228b4f4fa58ac414430df15bd638b89ca1 /setuptools/msvc.py
parent651e3ffacb4208469e97a4eeaba623f5413daa7d (diff)
downloadexternal_python_setuptools-7b1fa7643e2599f24956323a2066a6e26dc57b82.tar.gz
external_python_setuptools-7b1fa7643e2599f24956323a2066a6e26dc57b82.tar.bz2
external_python_setuptools-7b1fa7643e2599f24956323a2066a6e26dc57b82.zip
doc for msvc14_library_dir_option
Diffstat (limited to 'setuptools/msvc.py')
-rw-r--r--setuptools/msvc.py16
1 files changed, 15 insertions, 1 deletions
diff --git a/setuptools/msvc.py b/setuptools/msvc.py
index 3e2472a2..da26371c 100644
--- a/setuptools/msvc.py
+++ b/setuptools/msvc.py
@@ -86,7 +86,7 @@ def patch_for_specialized_compiler():
pass
try:
- # Patch distutils._msvccompiler.library_dir_option
+ # Patch distutils._msvccompiler.MSVCCompiler.library_dir_option
unpatched['msvc14_library_dir_option'] = msvc14compiler.MSVCCompiler.library_dir_option
msvc14compiler.MSVCCompiler.library_dir_option = msvc14_library_dir_option
except Exception:
@@ -220,7 +220,21 @@ def msvc14_get_vc_env(plat_spec):
def msvc14_library_dir_option(self, dir):
+ """
+ Patched "distutils._msvccompiler.MSVCCompiler.library_dir_option"
+ to fix unquoted path in "\LIBPATH" argument when a space is on path.
+
+ Parameters
+ ----------
+ dir: str
+ Path to convert in "\LIBPATH" argument.
+
+ Return
+ ------
+ "\LIBPATH" argument: str
+ """
if ' ' in dir and '"' not in dir:
+ # Quote if space and not already quoted
dir = '"%s"' % dir
return unpatched['msvc14_library_dir_option'](self, dir)