Skip to content

Commit

Permalink
Change: drop distutils lib (deprecated) (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
hadialqattan authored Oct 14, 2023
1 parent f37261a commit ca54d0a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

## [Unreleased]

### Changed

- [Drop distutils lib by @hadialqattan](https://github.com/hadialqattan/pycln/pull/220)

## [2.2.2] - 2023-08-10

### Changed
Expand Down
7 changes: 2 additions & 5 deletions pycln/utils/pathu.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Pycln path finding utility."""
import os
import sys
from distutils import sysconfig
import sysconfig
from functools import lru_cache
from pathlib import Path
from typing import Generator, Optional, Pattern, Set, Tuple
Expand Down Expand Up @@ -43,10 +43,7 @@
}
IMPORTS_WITH_SIDE_EFFECTS = {"this", "antigravity", "rlcompleter"}
PYTHON_STDLIB_PATHS = frozenset(
{
sysconfig.get_python_lib(standard_lib=True, plat_specific=True),
sysconfig.get_python_lib(standard_lib=True, plat_specific=False),
}
{sysconfig.get_path("platstdlib"), sysconfig.get_path("stdlib")}
)


Expand Down

0 comments on commit ca54d0a

Please sign in to comment.