mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
fix packaging.compiler.msvc9compiler: os.environ['path'] value is also a str
Don't encode the path list
This commit is contained in:
parent
9999185447
commit
8914fed842
1 changed files with 1 additions and 2 deletions
|
@ -356,8 +356,7 @@ class MSVCCompiler(CCompiler) :
|
|||
vc_env = query_vcvarsall(VERSION, plat_spec)
|
||||
|
||||
# take care to only use strings in the environment.
|
||||
self.__paths = [part.encode('mbcs') for part in
|
||||
vc_env['path'].split(os.pathsep)]
|
||||
self.__paths = vc_env['path'].split(os.pathsep)
|
||||
os.environ['lib'] = vc_env['lib']
|
||||
os.environ['include'] = vc_env['include']
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue