pimoroni / vl53l1x-python

Python library for the VL53L1X Laser Ranger
https://shop.pimoroni.com/products/vl53l1x-breakout
94 stars 53 forks source link

Where is vl51l1x_python.so #50

Closed rawatsaurabh closed 2 years ago

rawatsaurabh commented 3 years ago

Sorry this is not an issue but information on where is vl51l1x_python.so being referred here :

files = glob.glob(lib_location + "/vl53l1x_python*.so")

How to build this file?Any Makefile for this?

Gadgetoid commented 2 years ago

This is configured by the Python installer as a C extension:

https://github.com/pimoroni/vl53l1x-python/blob/9244e4a760d13bd81745ff779dbe314a9ad953f2/setup.py#L3-L22

ghost commented 2 years ago

ok but if we try to run the API from the source , how can me make the .so from the c file? Can you please provide the Make file for it? I believe they .so is being created from the files inside the api/ folder ( core and platform) correct? thanks,