Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
74b46cea
Commit
74b46cea
authored
Apr 16, 2017
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "In msvc9_query_vcvarsall, ensure dict values are not unicode. Fixes #992."
This reverts commit
b50fdf49
.
parent
862da016
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
18 deletions
+1
-18
setuptools/msvc.py
setuptools/msvc.py
+1
-4
setuptools/py27compat.py
setuptools/py27compat.py
+0
-14
No files found.
setuptools/msvc.py
View file @
74b46cea
...
...
@@ -27,7 +27,6 @@ from packaging.version import LegacyVersion
from
six.moves
import
filterfalse
from
.monkey
import
get_unpatched
from
.
import
py27compat
if
platform
.
system
()
==
'Windows'
:
from
six.moves
import
winreg
...
...
@@ -136,13 +135,11 @@ def msvc9_query_vcvarsall(ver, arch='x86', *args, **kwargs):
# If error, try to set environment directly
try
:
env
=
EnvironmentInfo
(
arch
,
ver
).
return_env
()
return
EnvironmentInfo
(
arch
,
ver
).
return_env
()
except
distutils
.
errors
.
DistutilsPlatformError
as
exc
:
_augment_exception
(
exc
,
ver
,
arch
)
raise
return
py27compat
.
dict_values_strings
(
env
)
def
msvc14_get_vc_env
(
plat_spec
):
"""
...
...
setuptools/py27compat.py
View file @
74b46cea
...
...
@@ -26,17 +26,3 @@ linux_py2_ascii = (
rmtree_safe
=
str
if
linux_py2_ascii
else
lambda
x
:
x
"""Workaround for http://bugs.python.org/issue24672"""
def
dict_values_strings
(
dict_
):
"""
Given a dict, make sure the text values are str.
"""
if
six
.
PY3
:
return
dict_
# When dropping Python 2.6 support, use a dict constructor
return
dict
(
(
key
,
str
(
value
))
for
key
,
value
in
dict_
.
iteritems
()
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment