PCBUSB-Library icon indicating copy to clipboard operation
PCBUSB-Library copied to clipboard

Distribute as a Python Pip Package?

Open emrainey opened this issue 3 years ago • 0 comments

It would be useful for users to be able to pip install pcanbasic so that can use your python library without having to manually install it themselves. I think It would have to: 1.) Install PCANBasic.py into the site-packages (pip does this for you if you follow the proper layout) 2.) Install libPCBUSB.0.10.1.dylib into a known location, like /usr/local/lib then run ldconfig. This might be some custom code.

Users would then run:

$ python3 -m pip install pcanbasic

Then in their python code they can just import it

# import the class PCANBasic from the module named PCANBasic
from PCANBasic import PCANBasic

And it works!

emrainey avatar Jan 07 '22 16:01 emrainey