From d8accf16ac20bb2922e222bda2a27d0b8e174a95 Mon Sep 17 00:00:00 2001 From: Kyle Altendorf Date: Tue, 26 Sep 2023 15:49:25 -0400 Subject: [PATCH] stop using `pkg_resources.get_distribution()` in `pyinstaller.spec` (#16420) --- build_scripts/pyinstaller.spec | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/build_scripts/pyinstaller.spec b/build_scripts/pyinstaller.spec index dade1cd7b5b5..261de8103efe 100644 --- a/build_scripts/pyinstaller.spec +++ b/build_scripts/pyinstaller.spec @@ -5,8 +5,6 @@ import pathlib import platform import sysconfig -from pkg_resources import get_distribution - from PyInstaller.utils.hooks import collect_submodules, copy_metadata THIS_IS_WINDOWS = platform.system().lower().startswith("win") @@ -51,7 +49,7 @@ keyring_imports = collect_submodules("keyring.backends") # keyring uses entrypoints to read keyring.backends from metadata file entry_points.txt. keyring_datas = copy_metadata("keyring")[0] -version_data = copy_metadata(get_distribution("chia-blockchain"))[0] +version_data = copy_metadata("chia-blockchain")[0] block_cipher = None