From 0fe6e1d5ce3814eb653d89e2268525276c7b05be Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 19 Nov 2023 13:31:51 +0530 Subject: [PATCH] distutils deprecation If only python's idiotic build system had been built by someone that had the first clue what they were doing. --- .github/workflows/win-ci.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/win-ci.py b/.github/workflows/win-ci.py index a3ecc25..bb65b20 100644 --- a/.github/workflows/win-ci.py +++ b/.github/workflows/win-ci.py @@ -8,7 +8,6 @@ import glob import io import os -import pipes import shlex import shutil import subprocess @@ -65,7 +64,7 @@ def run(*args, env=None, cwd=None): cmd = split(args[0]) else: cmd = args - printf(' '.join(pipes.quote(x) for x in cmd)) + printf(' '.join(shlex.quote(x) for x in cmd)) sys.stdout.flush() if env: printf('Using modified env:', env) @@ -83,7 +82,7 @@ def run(*args, env=None, cwd=None): def distutils_vcvars(): - from distutils.msvc9compiler import find_vcvarsall, get_build_version + from setuptools._distutils.msvc9compiler import find_vcvarsall, get_build_version return find_vcvarsall(get_build_version())