Help on package _distutils_hack: NAME _distutils_hack - # don't import any costly modules PACKAGE CONTENTS override CLASSES builtins.object DistutilsMetaFinder shim class DistutilsMetaFinder(builtins.object) | Methods defined here: | | find_spec(self, fullname, path, target=None) | | spec_for_distutils(self) | | spec_for_pip(self) | Ensure stdlib distutils when running under pip. | See pypa/pip#8761 for rationale. | | spec_for_sensitive_tests(self) | Ensure stdlib distutils when running select tests under CPython. | | python/cpython#91169 | | spec_for_test.test_distutils = spec_for_sensitive_tests(self) | | ---------------------------------------------------------------------- | Class methods defined here: | | pip_imported_during_build() | Detect if pip is being imported in a build script. Ref #2355. | | ---------------------------------------------------------------------- | Static methods defined here: | | frame_file_is_setup(frame) | Return True if the indicated frame suggests a setup.py file. | | is_cpython() | Suppress supplying distutils for CPython (build and tests). | Ref #2965 and #3007. | | ---------------------------------------------------------------------- | Data descriptors defined here: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Data and other attributes defined here: | | sensitive_tests = ['test.test_distutils'] class shim(builtins.object) | Methods defined here: | | __enter__(self) | | __exit__(self, exc, value, tb) | | ---------------------------------------------------------------------- | Data descriptors defined here: | | __dict__ | dictionary for instance variables | | __weakref__ | list of weak references to the object FUNCTIONS add_shim() clear_distutils() do_override() Ensure that the local copy of distutils is preferred over stdlib. See https://github.com/pypa/setuptools/issues/417#issuecomment-392298401 for more motivation. enabled() Allow selection of distutils by environment variable. ensure_local_distutils() insert_shim() warn_distutils_present() DATA DISTUTILS_FINDER = <_distutils_hack.DistutilsMetaFinder object> is_pypy = False name = 'test.test_distutils' FILE /usr/lib/python3/dist-packages/_distutils_hack/__init__.py
Generated by phpman v4.12.29 · Markdown · JSON Author: Che Dong Under GNU General Public License
2026-12-02 05:05 @216.73.216.10
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)