Skip to content

Commit e059d01

Browse files
committed
Added architecture-specific handling for MacOS (arm64 vs x86_64) in plugin download logic.
1 parent be28977 commit e059d01

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

neo/rawio/maxwellrawio.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,11 @@ def auto_install_maxwell_hdf5_compression_plugin(hdf5_plugin_path=None, force_do
272272
remote_lib = "https://share.mxwbio.com/d/7f2d1e98a1724a1b8b35/files/?p=%2FLinux%2Flibcompression.so&dl=1"
273273
local_lib = hdf5_plugin_path / "libcompression.so"
274274
elif platform.system() == "Darwin":
275-
remote_lib = "https://share.mxwbio.com/d/7f2d1e98a1724a1b8b35/files/?p=%2FMacOS%2FMac_x86_64%2Flibcompression.dylib&dl=1"
275+
if platform.machine() == "arm64":
276+
remote_lib = "https://share.mxwbio.com/d/7f2d1e98a1724a1b8b35/files/?p=%2FMacOS%2FMac_arm64%2Flibcompression.dylib&dl=1"
277+
else:
278+
# Assuming x86_64 for MacOS
279+
remote_lib = "https://share.mxwbio.com/d/7f2d1e98a1724a1b8b35/files/?p=%2FMacOS%2FMac_x86_64%2Flibcompression.dylib&dl=1"
276280
local_lib = hdf5_plugin_path / "libcompression.dylib"
277281
elif platform.system() == "Windows":
278282
remote_lib = "https://share.mxwbio.com/d/7f2d1e98a1724a1b8b35/files/?p=%2FWindows%2Fcompression.dll&dl=1"

0 commit comments

Comments
 (0)