-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathsetup.py
53 lines (49 loc) · 1.84 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import os
from setuptools import setup, find_packages
def format_data_files():
data_files = [
('plugins', [os.path.join('plugins', 'exiftool-12.35.exe')]),
]
# Iterate through all files and subdirectories in a directory
for root, _, filenames in os.walk(os.path.join('plugins', 'dji_thermal_sdk_v1.5_20240507')):
filepaths = []
for filename in filenames:
if any(filename.endswith(v) for v in ['.dll', '.lib', '.so', '.ini', '.txt']):
filepaths.append(os.path.join(root, filename))
if filepaths:
data_files.append((root, filepaths))
return data_files
setup(
name='thermal_parser',
version='20240826',
description='FLIR/DJI IR Camera Data Parser, Python Version',
url='https://github.com/SanNianYiSi/thermal_parser',
author='SanNianYiSi',
author_email='[email protected]',
license='MIT Licence',
packages=find_packages(),
data_files=format_data_files(),
install_requires=[
'numpy',
'Pillow',
],
classifiers=[
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Intended Audience :: Developers',
'Natural Language :: Chinese (Simplified)',
'Natural Language :: English',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Topic :: Software Development :: Libraries'
],
)