Skip to content

Commit d8e0cc9

Browse files
committed
Replace distutils.sysconfig with sysconfig. distutils is deprecated and will be removed in Python 3.12.
1 parent 578d095 commit d8e0cc9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lint-pyre.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55

66
set -e
77

8-
PURELIB=$(poetry run python -c 'from distutils.sysconfig import get_python_lib;print(get_python_lib(0))')
9-
PLATLIB=$(poetry run python -c 'from distutils.sysconfig import get_python_lib;print(get_python_lib(1))')
8+
PURELIB=$(poetry run python -c 'import sysconfig; print(sysconfig.get_path("purelib"))')
9+
PLATLIB=$(poetry run python -c 'import sysconfig; print(sysconfig.get_path("platlib"))')
1010
poetry run pyre --source-directory src --search-path ../antsibull-core/src/ --search-path "$PURELIB" --search-path "$PLATLIB" --search-path stubs/ "$@"

0 commit comments

Comments
 (0)