summaryrefslogtreecommitdiff
path: root/setuptools/distutils_patch.py
Commit message (Collapse)AuthorAgeFilesLines
* Warn the user when distutils is present to discourage this usage and direct ↵Jason R. Coombs2020-07-121-1/+18
| | | | users to the recommended usage. Closes #2230.
* Allow opt-in and opt-out of distutils adoption at run time with ↵distutils-adopt-escape-hatchJason R. Coombs2020-07-111-2/+3
| | | | SETUPTOOLS_USE_DISTUTILS environment variable.
* Provide escape hatch for distutils adoption.Jason R. Coombs2020-07-101-1/+10
|
* Ensure the module is named 'distutils'. Avoids errors when distutils.log and ↵Jason R. Coombs2020-07-031-0/+1
| | | | setuptools._distutils.log are two separate modules with separate state.
* Move distutils into a submodule of setuptools.Jason R. Coombs2020-07-031-15/+6
|
* Replace distutils rather than requiring it to be present in advanec. Instead ↵Jason R. Coombs2020-06-211-2/+13
| | | | of crashing, issue a warning when Setuptools is replacing distutils.
* Update setuptools/distutils_patch.pyJason R. Coombs2020-06-211-1/+1
| | | Co-authored-by: Steve Dower <steve.dower@microsoft.com>
* Extract function for ensure_local_distuilsJason R. Coombs2020-05-311-4/+6
|
* Update distutils patch to monkeypatch all paths from sys.path to ensure that ↵Jason R. Coombs2020-05-251-3/+17
| | | | distutils is never imported except from the same path as setuptools. Assert that 'distutils' is not already in sys.modules.
* Move distutils import to a separate file to avoid linter errors.Jason R. Coombs2020-05-251-0/+15