summaryrefslogtreecommitdiff
path: root/setuptools/monkey.py
diff options
context:
space:
mode:
authorPaul Ganssle <paul@ganssle.io>2018-03-18 11:43:00 -0400
committerPaul Ganssle <paul@ganssle.io>2018-03-18 11:43:00 -0400
commita0723a66bf7950ee470971ac9931d751a7dd76f3 (patch)
tree5efe17e9d162c56f47dd24febff88f67880e157d /setuptools/monkey.py
parent76f1da96edb2a9252c4aa7f4eacdac4312209d1c (diff)
downloadpython-setuptools-git-a0723a66bf7950ee470971ac9931d751a7dd76f3.tar.gz
Stop patching write_pkg_info
Diffstat (limited to 'setuptools/monkey.py')
-rw-r--r--setuptools/monkey.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/setuptools/monkey.py b/setuptools/monkey.py
index d9eb7d7b..08ed50d9 100644
--- a/setuptools/monkey.py
+++ b/setuptools/monkey.py
@@ -87,7 +87,6 @@ def patch_all():
distutils.config.PyPIRCCommand.DEFAULT_REPOSITORY = warehouse
_patch_distribution_metadata_write_pkg_file()
- _patch_distribution_metadata_write_pkg_info()
# Install Distribution throughout the distutils
for module in distutils.dist, distutils.core, distutils.cmd:
@@ -111,21 +110,6 @@ def _patch_distribution_metadata_write_pkg_file():
)
-def _patch_distribution_metadata_write_pkg_info():
- """
- 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.
- """
- environment_local = (3,) <= sys.version_info[:3] < (3, 2, 2)
- if not environment_local:
- return
-
- distutils.dist.DistributionMetadata.write_pkg_info = (
- setuptools.dist.write_pkg_info
- )
-
-
def patch_func(replacement, target_mod, func_name):
"""
Patch func_name in target_mod with replacement