{
    "content": [
        {
            "type": "text",
            "text": "# _distutils_hack (pydoc)\n\n**Summary:** distutilshack\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **PACKAGE CONTENTS** (2 lines)\n- **CLASSES** (3 lines) — 1 subsections\n  - class DistutilsMetaFinder (25 lines)\n- **FUNCTIONS** (1 lines) — 7 subsections\n  - add_shim (1 lines)\n  - clear_distutils (1 lines)\n  - do_override (5 lines)\n  - enabled (2 lines)\n  - ensure_local_distutils (1 lines)\n  - remove_shim (1 lines)\n  - warn_distutils_present (1 lines)\n- **DATA** (3 lines)\n- **FILE** (3 lines)\n\n## Full Content\n\n### NAME\n\ndistutilshack\n\n### PACKAGE CONTENTS\n\noverride\n\n### CLASSES\n\nbuiltins.object\nDistutilsMetaFinder\n\n#### class DistutilsMetaFinder\n\n|  Methods defined here:\n|\n|  findspec(self, fullname, path, target=None)\n|\n|  specfordistutils(self)\n|\n|  specforpip(self)\n|      Ensure stdlib distutils when running under pip.\n|      See pypa/pip#8761 for rationale.\n|\n|  ----------------------------------------------------------------------\n|  Static methods defined here:\n|\n|  pipimportedduringbuild()\n|      Detect if pip is being imported in a build script. Ref #2355.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors defined here:\n|\n|  dict\n|      dictionary for instance variables (if defined)\n|\n|  weakref\n|      list of weak references to the object (if defined)\n\n### FUNCTIONS\n\n#### add_shim\n\n#### clear_distutils\n\n#### do_override\n\nEnsure that the local copy of distutils is preferred over stdlib.\n\nSee https://github.com/pypa/setuptools/issues/417#issuecomment-392298401\nfor more motivation.\n\n#### enabled\n\nAllow selection of distutils by environment variable.\n\n#### ensure_local_distutils\n\n#### remove_shim\n\n#### warn_distutils_present\n\n### DATA\n\nDISTUTILSFINDER = <distutilshack.DistutilsMetaFinder object>\nispypy = False\n\n### FILE\n\n/usr/lib/python3/dist-packages/distutilshack/init.py\n\n"
        }
    ],
    "structuredContent": {
        "command": "_distutils_hack",
        "section": "",
        "mode": "pydoc",
        "summary": "distutilshack",
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "PACKAGE CONTENTS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "CLASSES",
                "lines": 3,
                "subsections": [
                    {
                        "name": "class DistutilsMetaFinder",
                        "lines": 25
                    }
                ]
            },
            {
                "name": "FUNCTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "add_shim",
                        "lines": 1
                    },
                    {
                        "name": "clear_distutils",
                        "lines": 1
                    },
                    {
                        "name": "do_override",
                        "lines": 5
                    },
                    {
                        "name": "enabled",
                        "lines": 2
                    },
                    {
                        "name": "ensure_local_distutils",
                        "lines": 1
                    },
                    {
                        "name": "remove_shim",
                        "lines": 1
                    },
                    {
                        "name": "warn_distutils_present",
                        "lines": 1
                    }
                ]
            },
            {
                "name": "DATA",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "FILE",
                "lines": 3,
                "subsections": []
            }
        ]
    }
}