qlsdk2 0.1.1__tar.gz → 0.1.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: qlsdk2
3
- Version: 0.1.1
3
+ Version: 0.1.3
4
4
  Summary: SDK for quanlan device
5
5
  Home-page: https://github.com/hehuajun/qlsdk
6
6
  Author: hehuajun
@@ -6,7 +6,7 @@ with open("README.md", "r") as fh:
6
6
 
7
7
  setuptools.setup(
8
8
  name="qlsdk2",
9
- version="0.1.1",
9
+ version="0.1.3",
10
10
  author="hehuajun",
11
11
  author_email="hehuajun@eegion.com",
12
12
  description="SDK for quanlan device",
@@ -23,6 +23,10 @@ setuptools.setup(
23
23
  python_requires='>=3.9',
24
24
  install_requires=open("requirements.txt").read().splitlines(),
25
25
  include_package_data=True,
26
+ package_data={
27
+ "src/qlsdk/ar4m/": ["libs/*.dll"],
28
+ "":["*.txt", "*.md"]
29
+ },
26
30
  # entry_points={
27
31
  # 'console_scripts': [
28
32
  # 'qlsdk-cli=qlsdk.cli:main', # 如果有命令行工具
@@ -8,10 +8,13 @@ from ctypes import (
8
8
  )
9
9
  from loguru import logger
10
10
  from time import sleep, time
11
+ import os
11
12
 
13
+ real_path = os.path.realpath(__file__)
14
+ dll_path = f'{real_path}/libs/libAr4SDK.dll'
12
15
  # 加载 DLL
13
16
  if platform.system() == 'Windows':
14
- _dll = ctypes.CDLL('./libs/libAr4SDK.dll')
17
+ _dll = ctypes.CDLL(dll_path)
15
18
  else:
16
19
  raise NotImplementedError(f"不支持非Windows平台:{platform.system()}")
17
20
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: qlsdk2
3
- Version: 0.1.1
3
+ Version: 0.1.3
4
4
  Summary: SDK for quanlan device
5
5
  Home-page: https://github.com/hehuajun/qlsdk
6
6
  Author: hehuajun
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes