Skip to content

Commit

Permalink
distutils deprecation
Browse files Browse the repository at this point in the history
If only python's idiotic build system had been built by someone that had
the first clue what they were doing.
  • Loading branch information
kovidgoyal committed Nov 19, 2023
1 parent c5417aa commit 0fe6e1d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/win-ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import glob
import io
import os
import pipes
import shlex
import shutil
import subprocess
Expand Down Expand Up @@ -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)
Expand All @@ -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())


Expand Down

0 comments on commit 0fe6e1d

Please sign in to comment.