forked from johnbryanmoore/VL53L0X_rasp_python
-
Notifications
You must be signed in to change notification settings - Fork 23
/
setup.py
29 lines (27 loc) · 963 Bytes
/
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
from setuptools import setup, Extension
extension = Extension(
'vl53l0x_python',
define_macros=[],
include_dirs=['.', 'Api/core/inc', 'platform/inc'],
libraries=[],
library_dirs=[],
sources=['Api/core/src/vl53l0x_api_calibration.c',
'Api/core/src/vl53l0x_api_core.c',
'Api/core/src/vl53l0x_api_ranging.c',
'Api/core/src/vl53l0x_api_strings.c',
'Api/core/src/vl53l0x_api.c',
'platform/src/vl53l0x_platform.c',
'python_lib/vl53l0x_python.c'])
setup(name='VL53L0X',
version='1.0.4',
description='VL53L0X sensor for raspberry PI/JetsonTX2',
# author='?',
# author_email='?',
url='https://github.com/pimoroni/VL53L0X-python',
long_description='''
VL53L0X sensor for raspberry PI/JetsonTX2.
''',
ext_modules=[extension],
package_dir={'': 'python'},
py_modules=['VL53L0X'],
requires=['smbus' or 'smbus2'])