scripts: Fix distutils deprecation in link_pyqt
$ .../.tox/py310/bin/python scripts/link_pyqt.py --tox .tox/py310
<string>:1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
<string>:1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
See https://bugs.python.org/issue41282
(cherry picked from commit e3e0fbc355)
This commit is contained in:
parent
be264da3e2
commit
01ce3dfabf
|
|
@ -189,8 +189,8 @@ def get_venv_lib_path(path):
|
|||
subdir = 'Scripts' if os.name == 'nt' else 'bin'
|
||||
executable = os.path.join(path, subdir, 'python')
|
||||
return run_py(executable,
|
||||
'from distutils.sysconfig import get_python_lib',
|
||||
'print(get_python_lib())')
|
||||
'from sysconfig import get_path',
|
||||
'print(get_path("platlib"))')
|
||||
|
||||
|
||||
def get_tox_syspython(tox_path):
|
||||
|
|
|
|||
Loading…
Reference in New Issue