Skip to content

Commit

Permalink
IDF: Get rid of deprecated "pkg_resources" dependency
Browse files Browse the repository at this point in the history
Resolves #1277
  • Loading branch information
valeros committed Jan 17, 2024
1 parent ee1dd5a commit bd7dd2c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions builder/frameworks/espidf.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import sys
import shutil
import os
import pkg_resources
import platform as sys_platform

import click
Expand Down Expand Up @@ -1157,9 +1156,7 @@ def _get_installed_pip_packages(python_exe_path):

# A special "esp-windows-curses" python package is required on Windows
# for Menuconfig on IDF <5
if not IDF5 and "esp-windows-curses" not in {
pkg.key for pkg in pkg_resources.working_set
}:
if not IDF5 and "esp-windows-curses" not in installed_packages:
env.Execute(
env.VerboseAction(
'"%s" -m pip install "file://%s/tools/kconfig_new/esp-windows-curses"'
Expand Down

0 comments on commit bd7dd2c

Please sign in to comment.