Skip to content

Commit 91f0f16

Browse files
committed
fix: disable strip and UPX on all platforms to prevent .so corruption
strip corrupts libscipy_openblas64_ on Linux (ELF load command address/offset not page-aligned), breaking numpy and therefore chromadb. Combined with the existing Windows python312.dll issue, strip and UPX are now disabled on all platforms.
1 parent d1ab2c4 commit 91f0f16

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

backend/syft-space-backend.spec

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,6 @@ a = Analysis(
6969
)
7070
pyz = PYZ(a.pure)
7171

72-
import sys
73-
74-
_is_win = sys.platform == 'win32'
75-
7672
exe = EXE(
7773
pyz,
7874
a.scripts,
@@ -81,8 +77,8 @@ exe = EXE(
8177
name='syft-space-backend',
8278
debug=False,
8379
bootloader_ignore_signals=False,
84-
strip=not _is_win,
85-
upx=not _is_win,
80+
strip=False,
81+
upx=False,
8682
upx_exclude=[],
8783
console=True,
8884
disable_windowed_traceback=False,
@@ -96,8 +92,8 @@ coll = COLLECT(
9692
exe,
9793
a.binaries,
9894
a.datas,
99-
strip=not _is_win,
100-
upx=not _is_win,
95+
strip=False,
96+
upx=False,
10197
upx_exclude=[],
10298
name='syft-space-backend',
10399
)

0 commit comments

Comments
 (0)