From bf94cb8fcd50170b462e1428f51d588afcfe0f26 Mon Sep 17 00:00:00 2001 From: Pekka T Savolainen Date: Wed, 19 Jun 2024 13:38:36 +0300 Subject: [PATCH] Limit numpy<2 when building the bundle - It seems that PyInstaller 6.8.0 is not compatible with numpy 2.0+ - Removed hook-numpy.py because PyInstaller has it's own numpy hook with the same file name Re #2852 --- .github/workflows/make_bundle.yml | 4 ++++ PyInstaller hooks/hook-numpy.py | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) delete mode 100644 PyInstaller hooks/hook-numpy.py diff --git a/.github/workflows/make_bundle.yml b/.github/workflows/make_bundle.yml index 333203a63..aca47c640 100644 --- a/.github/workflows/make_bundle.yml +++ b/.github/workflows/make_bundle.yml @@ -29,6 +29,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip + python -m pip install "numpy<2" # See issue #2852. Remove when PyInstaller supports numpy 2.0+ python -m pip install -r requirements.txt - name: Run tests run: | @@ -36,6 +37,9 @@ jobs: - name: Install PyInstaller run: | python -m pip install PyInstaller + - name: List packages + run: + python -m pip list - name: Download embeddable Python run: | mkdir embedded-python diff --git a/PyInstaller hooks/hook-numpy.py b/PyInstaller hooks/hook-numpy.py deleted file mode 100644 index d38e62210..000000000 --- a/PyInstaller hooks/hook-numpy.py +++ /dev/null @@ -1,3 +0,0 @@ -from PyInstaller.utils.hooks import collect_all - -datas, binaries, hiddenimports = collect_all("numpy")