Skip to content

Commit

Permalink
Replace distutils.sysconfig with sysconfig. distutils is deprecated a…
Browse files Browse the repository at this point in the history
…nd will be removed in Python 3.12.
  • Loading branch information
felixfontein committed Nov 12, 2022
1 parent 2c92557 commit 375d8f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lint-pyre.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

set -e

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

0 comments on commit 375d8f6

Please sign in to comment.