Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distribute as a Python Pip Package? #5

Open
emrainey opened this issue Jan 7, 2022 · 0 comments
Open

Distribute as a Python Pip Package? #5

emrainey opened this issue Jan 7, 2022 · 0 comments
Labels
question Further information is requested

Comments

@emrainey
Copy link

emrainey commented Jan 7, 2022

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!

@mac-can mac-can added the question Further information is requested label Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants