diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2021-11-13 09:29:56 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2021-11-13 09:34:56 -0500 |
commit | 115da201da0e648d003dabbbd597d285d0d271f2 (patch) | |
tree | 82aa0ca8ca740168e7d1b0f20a529ce2a592738d | |
parent | 888ab6de173f703b13b36ab278170e2004e0752d (diff) | |
download | python-setuptools-git-115da201da0e648d003dabbbd597d285d0d271f2.tar.gz |
Move the monkeypatch behavior to the hook target and invoke it on import.
-rw-r--r-- | _distutils_system_mod.py (renamed from distutils/debian.py) | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/distutils/debian.py b/_distutils_system_mod.py index 91d006d2..43e93428 100644 --- a/distutils/debian.py +++ b/_distutils_system_mod.py @@ -5,12 +5,7 @@ Extracts the customized behavior from patches as reported in pypa/distutils#2 and applies those customizations (except for scheme definitions) to those commands. -Call ``apply_customizations`` to have these customizations -take effect. Debian can do that from site.py or similar:: - - with contextlib.suppress(ImportError): - import distutils.debian - distutils.debian.apply_customizations() +Place this module somewhere in sys.path to take effect. """ import os @@ -121,3 +116,6 @@ def apply_customizations(): orig_install.install = install orig_install_egg_info.install_egg_info = install_egg_info distutils.sysconfig._posix_lib = _posix_lib + + +apply_customizations() |