Skip to content

Commit

Permalink
Refactor: Update PyInstaller configuration for numpy dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
royshil committed Sep 23, 2024
1 parent 371b9e3 commit 00d9763
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scoresight.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# -*- mode: python ; coding: utf-8 -*-
import os
from PyInstaller.utils.hooks import collect_all

# parse command line arguments
import argparse
Expand Down Expand Up @@ -90,12 +91,14 @@ if args.win:
if args.mac_osx:
sources += ['screen_capture_source_mac.py']

numpy_datas, numpy_binaries, numpy_hiddenimports = collect_all('numpy')

a = Analysis(
sources,
pathex=[],
binaries=[],
datas=datas,
hiddenimports=['numpy.core.multiarray'],
binaries=numpy_binaries,
datas=datas + numpy_datas,
hiddenimports=numpy_hiddenimports,
hookspath=[],
hooksconfig={},
runtime_hooks=[],
Expand Down

0 comments on commit 00d9763

Please sign in to comment.