Skip to content

Commit

Permalink
workaround numpy 2 build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
lebaston100 committed Jul 20, 2024
1 parent 09a6f7c commit 1080795
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 17 deletions.
6 changes: 6 additions & 0 deletions server/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import logging
import sys

# this could be another workaround for the numpy console issue
# import os
# if getattr(sys, 'frozen', False) and hasattr(sys, '_MEIPASS'):
# sys.stdout = open(os.devnull, 'w')
# sys.stderr = open(os.devnull, 'w')

from PyQt6.QtWidgets import QApplication

from modules.GlobalConfig import GlobalConfigSingleton
Expand Down
10 changes: 2 additions & 8 deletions server/vrc-patpatpat-debug.spec
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# -*- mode: python ; coding: utf-8 -*-


block_cipher = None


a = Analysis(
['main.py'],
pathex=[],
Expand All @@ -14,18 +11,15 @@ a = Analysis(
hooksconfig={},
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=True,
optimize=0,
)
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
pyz = PYZ(a.pure)

exe = EXE(
pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[('v', None, 'OPTION')],
name='vrc-patpatpat',
Expand Down
12 changes: 3 additions & 9 deletions server/vrc-patpatpat.spec
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# -*- mode: python ; coding: utf-8 -*-


block_cipher = None


a = Analysis(
['main.py'],
pathex=[],
Expand All @@ -14,18 +11,15 @@ a = Analysis(
hooksconfig={},
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False,
optimize=0,
)
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
pyz = PYZ(a.pure)

exe = EXE(
pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
name='vrc-patpatpat',
Expand All @@ -35,7 +29,7 @@ exe = EXE(
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=False,
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
Expand Down

0 comments on commit 1080795

Please sign in to comment.