diff options
author | J. Goutin <JGoutin@users.noreply.github.com> | 2016-08-02 18:26:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-02 18:26:02 +0200 |
commit | 3f54d45ad832984b0601efe6ff62f6d16a4de2a5 (patch) | |
tree | a80bb1d38530cbe9ffa949a91f476aa38d0ddd39 /setuptools/msvc.py | |
parent | b0d667dbaedf16e77da46f420827d7493ed66d10 (diff) | |
download | external_python_setuptools-3f54d45ad832984b0601efe6ff62f6d16a4de2a5.tar.gz external_python_setuptools-3f54d45ad832984b0601efe6ff62f6d16a4de2a5.tar.bz2 external_python_setuptools-3f54d45ad832984b0601efe6ff62f6d16a4de2a5.zip |
Patch distutils._msvccompiler.library_dir_option
Try to fix #694.
Diffstat (limited to 'setuptools/msvc.py')
-rw-r--r-- | setuptools/msvc.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/setuptools/msvc.py b/setuptools/msvc.py index 6fb3300b..419b2292 100644 --- a/setuptools/msvc.py +++ b/setuptools/msvc.py @@ -85,6 +85,11 @@ def patch_for_specialized_compiler(): except Exception: pass + try: + # Patch distutils._msvccompiler.library_dir_option + unpatched['msvc14_library_dir_option'] = msvc14compiler.library_dir_option + msvc14compiler.library_dir_option = msvc14_library_dir_option + def msvc9_find_vcvarsall(version): """ @@ -212,6 +217,12 @@ def msvc14_get_vc_env(plat_spec): raise +def msvc14_library_dir_option(dir): + if ' ' in dir: + dir = '"%s"' % dir + return unpatched['msvc14_library_dir_option'](dir) + + def _augment_exception(exc, version, arch=''): """ Add details to the exception message to help guide the user |