diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-06-23 00:05:18 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-06-24 19:38:15 +0200 |
commit | 01ce3dfabf58e0d94f7b15d39112d5b5efff76b5 (patch) | |
tree | 57f57f0b640b96e5c4126fb939bb6329756416d4 | |
parent | be264da3e24d18f835d9ba212bf51ac759ce7206 (diff) | |
download | qutebrowser-01ce3dfabf58e0d94f7b15d39112d5b5efff76b5.tar.gz qutebrowser-01ce3dfabf58e0d94f7b15d39112d5b5efff76b5.zip |
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 e3e0fbc3559d9c3d08a3566f7d8bf03a23017e78)
-rw-r--r-- | scripts/link_pyqt.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/link_pyqt.py b/scripts/link_pyqt.py index 0341de096..158cc145d 100644 --- a/scripts/link_pyqt.py +++ b/scripts/link_pyqt.py @@ -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): |