diff options
author | Steve Dower <steve.dower@microsoft.com> | 2018-07-26 04:23:10 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-26 04:23:10 -0700 |
commit | 8be16112e6817cc23ee4f317bc58db5f1c7eb108 (patch) | |
tree | d6c0eb960dee85e7a82e0621078fdd2e2c20cd2f | |
parent | 74d0f1dc010170301dafe46faacee84bf246c880 (diff) | |
download | python-setuptools-git-8be16112e6817cc23ee4f317bc58db5f1c7eb108.tar.gz |
bpo-34225: Ensure INCLUDE and LIB directories do not end with a backslash. (GH-8464)
-rw-r--r-- | _msvccompiler.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/_msvccompiler.py b/_msvccompiler.py index c9d3c6c6..30b3b473 100644 --- a/_msvccompiler.py +++ b/_msvccompiler.py @@ -252,11 +252,11 @@ class MSVCCompiler(CCompiler) : for dir in vc_env.get('include', '').split(os.pathsep): if dir: - self.add_include_dir(dir) + self.add_include_dir(dir.rstrip(os.sep)) for dir in vc_env.get('lib', '').split(os.pathsep): if dir: - self.add_library_dir(dir) + self.add_library_dir(dir.rstrip(os.sep)) self.preprocess_options = None # If vcruntime_redist is available, link against it dynamically. Otherwise, |