summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--setuptools/dist.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/setuptools/dist.py b/setuptools/dist.py
index 69e04099..7713bf02 100644
--- a/setuptools/dist.py
+++ b/setuptools/dist.py
@@ -34,11 +34,12 @@ _Distribution = _get_unpatched(_Distribution)
def _patch_distribution_metadata_write_pkg_info():
"""
- Workaround issue #197 - Python [3.0 - 3.2.2> uses an environment-local
+ Workaround issue #197 - Python 3 prior to 3.2.2 uses an environment-local
encoding to save the pkg_info. Monkey-patch its write_pkg_info method to
correct this undesirable behavior.
"""
- if not ((3,) <= sys.version_info[:3] < (3, 2, 2)):
+ environment_local = (3,) <= sys.version_info[:3] < (3, 2, 2)
+ if not environment_local:
return
# from Python 3.4