Skip to content

Commit

Permalink
Use get_platform() from sysconfig instead distutils.util
Browse files Browse the repository at this point in the history
- distutils is dropped in python 3.10/3.12
- fixes #87
  • Loading branch information
ralphlange committed Nov 2, 2023
1 parent 899b183 commit a133e16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion cue-test.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from __future__ import print_function

import sys, os, shutil, fileinput
import distutils.util
import re
import subprocess as sp
import unittest
Expand Down
4 changes: 2 additions & 2 deletions cue.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import threading
from glob import glob
import subprocess as sp
import distutils.util
import sysconfig

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -314,7 +314,7 @@ def host_info():
print('PYTHONPATH')
for dname in sys.path:
print(' ', dname)
print('platform =', distutils.util.get_platform())
print('platform =', sysconfig.get_platform())

if ci['os'] == 'windows':
print('{0}Available Visual Studio versions{1}'.format(ANSI_CYAN, ANSI_RESET))
Expand Down

0 comments on commit a133e16

Please sign in to comment.