-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·52 lines (50 loc) · 1.85 KB
/
Copy pathsetup.py
File metadata and controls
executable file
·52 lines (50 loc) · 1.85 KB
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
from setuptools import setup, Extension
extension = Extension(
'vl53l3cx_python',
extra_compile_args=['-std=c99'],
include_dirs=['.', 'api/core', 'api/platform'],
sources=[
'api/core/vl53lx_api.c',
'api/core/vl53lx_api_calibration.c',
'api/core/vl53lx_api_core.c',
'api/core/vl53lx_api_debug.c',
'api/core/vl53lx_api_preset_modes.c',
'api/core/vl53lx_core.c',
'api/core/vl53lx_core_support.c',
'api/core/vl53lx_dmax.c',
'api/core/vl53lx_hist_algos_gen3.c',
'api/core/vl53lx_hist_algos_gen4.c',
'api/core/vl53lx_hist_core.c',
'api/core/vl53lx_hist_funcs.c',
'api/core/vl53lx_hist_char.c',
'api/core/vl53lx_nvm.c',
'api/core/vl53lx_nvm_debug.c',
'api/core/vl53lx_register_funcs.c',
'api/core/vl53lx_sigma_estimate.c',
'api/core/vl53lx_silicon_core.c',
'api/core/vl53lx_wait.c',
'api/core/vl53lx_xtalk.c',
'api/platform/vl53lx_platform.c',
'api/platform/vl53lx_platform_init.c',
'api/platform/vl53lx_platform_ipp.c',
'api/platform/vl53lx_platform_log.c',
'python_lib/vl53l3cx_python.c'
]
)
setup(
name='VL53L3CX',
version='1.0.2',
description='VL53L3CX distance sensor driver for Raspberry Pi',
maintainer='',
maintainer_email='',
url='https://github.com/FrgyCZ/VL53L3CX-python',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
# The importable wrapper module lives in python/VL53L3CX.py; without this
# it never gets installed (or shipped in the sdist), so `import VL53L3CX`
# fails even after the extension builds.
package_dir={'': 'python'},
py_modules=['VL53L3CX'],
ext_modules=[extension],
install_requires=['smbus2'],
)