Skip to content

Commit

Permalink
numpy...
Browse files Browse the repository at this point in the history
  • Loading branch information
baskiton committed Jul 9, 2024
1 parent da08a15 commit 7e664b3
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 3 deletions.
16 changes: 15 additions & 1 deletion decoder-onefile.spec
Original file line number Diff line number Diff line change
@@ -1,16 +1,30 @@
# -*- mode: python ; coding: utf-8 -*-

import pathlib

from threadpoolctl import threadpool_info

block_cipher = None


def get_ext_path():
x = threadpool_info()
if not x:
return []
x = x[0].get('filepath')
if not x:
return []
print('FOUND:', x)
return [str(pathlib.Path(x).parent)]


a = Analysis(
['SatsDecoder/__main__.py'],
pathex=[],
binaries=[],
datas=[('res/*.png', 'res')],
hiddenimports=['tkinter', 'tkinter.ttk', 'tkinter.filedialog', 'tkinter.messagebox', 'PIL._tkinter_finder'],
hookspath=[],
hookspath=get_ext_path(),
hooksconfig={},
runtime_hooks=[],
excludes=[],
Expand Down
16 changes: 15 additions & 1 deletion decoder.spec
Original file line number Diff line number Diff line change
@@ -1,16 +1,30 @@
# -*- mode: python ; coding: utf-8 -*-

import pathlib

from threadpoolctl import threadpool_info

block_cipher = None


def get_ext_path():
x = threadpool_info()
if not x:
return []
x = x[0].get('filepath')
if not x:
return []
print('FOUND:', x)
return [str(pathlib.Path(x).parent)]


a = Analysis(
['SatsDecoder/__main__.py'],
pathex=[],
binaries=[],
datas=[('res/*.png', 'res')],
hiddenimports=['tkinter', 'tkinter.ttk', 'tkinter.filedialog', 'tkinter.messagebox', 'PIL._tkinter_finder'],
hookspath=[],
hookspath=get_ext_path(),
hooksconfig={},
runtime_hooks=[],
excludes=[],
Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pyinstaller>=5,<6
threadpoolctl
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Pillow
construct
numpy
numpy<2

0 comments on commit 7e664b3

Please sign in to comment.