mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
fix packaging.compiler.msvc9compiler: os.environ values are str, not bytes
This commit is contained in:
parent
9cf6d13141
commit
9999185447
1 changed files with 2 additions and 2 deletions
|
@ -358,8 +358,8 @@ class MSVCCompiler(CCompiler) :
|
|||
# take care to only use strings in the environment.
|
||||
self.__paths = [part.encode('mbcs') for part in
|
||||
vc_env['path'].split(os.pathsep)]
|
||||
os.environ['lib'] = vc_env['lib'].encode('mbcs')
|
||||
os.environ['include'] = vc_env['include'].encode('mbcs')
|
||||
os.environ['lib'] = vc_env['lib']
|
||||
os.environ['include'] = vc_env['include']
|
||||
|
||||
if len(self.__paths) == 0:
|
||||
raise PackagingPlatformError("Python was built with %s, "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue