diff --git a/ephys_link.spec b/ephys_link.spec index ca7ed47..78a48d1 100644 --- a/ephys_link.spec +++ b/ephys_link.spec @@ -1,6 +1,7 @@ # -*- mode: python ; coding: utf-8 -*- from argparse import ArgumentParser +from importlib import resources from PyInstaller.utils.hooks import collect_submodules @@ -15,11 +16,14 @@ FILE_NAME = f"EphysLink-v{version}" # Collect binding modules. bindings = [binding for binding in collect_submodules("ephys_link.bindings") if binding != "ephys_link.bindings"] +# Collect Sensapex SDK. +ump_sdk_path = str(resources.files('sensapex').joinpath('libum.dll')) + # noinspection PyUnresolvedReferences a = Analysis( ['src\\ephys_link\\__main__.py'], pathex=[], - binaries=[], + binaries=[(ump_sdk_path, 'sensapex')], datas=[], hiddenimports=['engineio.async_drivers.aiohttp'] + bindings, hookspath=[], diff --git a/src/ephys_link/__about__.py b/src/ephys_link/__about__.py index 4eabd0b..e835b9d 100644 --- a/src/ephys_link/__about__.py +++ b/src/ephys_link/__about__.py @@ -1 +1 @@ -__version__ = "2.1.2" +__version__ = "2.1.3"