aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/dist.py
diff options
context:
space:
mode:
authorJurko Gospodnetić <jurko.gospodnetic@pke.hr>2014-05-12 18:57:50 +0200
committerJurko Gospodnetić <jurko.gospodnetic@pke.hr>2014-05-12 18:57:50 +0200
commit40232ffa1983be8149a68cb969f28b92200204b6 (patch)
treef5dff710edb165ebd05fc51ce7d10c8c33c3ab8f /setuptools/dist.py
parent846b29f32fb8bbeda4d4a06a4da35bebc3f41cbb (diff)
downloadexternal_python_setuptools-40232ffa1983be8149a68cb969f28b92200204b6.tar.gz
external_python_setuptools-40232ffa1983be8149a68cb969f28b92200204b6.tar.bz2
external_python_setuptools-40232ffa1983be8149a68cb969f28b92200204b6.zip
generalize fix for issue #197 from 1cd816bb7c933eecd9d8464e054b21c7d5daf2df
Now the same fix gets applied for Python versions [3.0 - 3.2.2> instead of just 3.1. The underlying distutils issue affected all those vesions and has been fixed in the Python 3.2.2 release. --HG-- extra : rebase_source : fe4dc458edbf83e13b275e02fb90939d9061e206
Diffstat (limited to 'setuptools/dist.py')
-rw-r--r--setuptools/dist.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/setuptools/dist.py b/setuptools/dist.py
index b8bd7490..69e04099 100644
--- a/setuptools/dist.py
+++ b/setuptools/dist.py
@@ -34,11 +34,11 @@ _Distribution = _get_unpatched(_Distribution)
def _patch_distribution_metadata_write_pkg_info():
"""
- Workaround issue #197 - Python 3.1 uses an environment-local encoding to
- save the pkg_info. Monkey-patch its write_pkg_info method to correct
- this undesirable behavior.
+ Workaround issue #197 - Python [3.0 - 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 sys.version_info[:2] != (3,1):
+ if not ((3,) <= sys.version_info[:3] < (3, 2, 2)):
return
# from Python 3.4