MINGW-packages/mingw-w64-python-yaml/0001-setup-disable-distutils.patch
2022-03-04 12:24:27 +05:30

13 lines
540 B
Diff

--- a/setup.py
+++ b/setup.py
@@ -66,9 +66,6 @@
import sys, os, os.path, pathlib, platform, shutil, tempfile, warnings
-# for newer setuptools, enable the embedded distutils before importing setuptools/distutils to avoid warnings
-os.environ['SETUPTOOLS_USE_DISTUTILS'] = 'local'
-
from setuptools import setup, Command, Distribution as _Distribution, Extension as _Extension
from setuptools.command.build_ext import build_ext as _build_ext
# NB: distutils imports must remain below setuptools to ensure we use the embedded version