[New-bugs-announce] [issue34225] distutils._msvccompiler should trim INCLUDE/LIB directories

Steve Dower report at bugs.python.org
Wed Jul 25 10:54:28 EDT 2018


New submission from Steve Dower <steve.dower at python.org>:

_msvccompiler reads the INCLUDE and LIB environment variables when building and adds each directory to the command line. However, if any of these end with os.sep (specifically, '\'), then it will escape the quoting and break the entire command.

We should rstrip(os.sep) on each item from this list.

----------
assignee: steve.dower
components: Distutils, Windows
messages: 322361
nosy: dstufft, eric.araujo, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: distutils._msvccompiler should trim INCLUDE/LIB directories
versions: Python 3.6, Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34225>
_______________________________________


More information about the New-bugs-announce mailing list