Title: Distribute as a Python Pip Package? · Issue #5 · mac-can/PCBUSB-Library · GitHub
Open Graph Title: Distribute as a Python Pip Package? · Issue #5 · mac-can/PCBUSB-Library
X Title: Distribute as a Python Pip Package? · Issue #5 · mac-can/PCBUSB-Library
Description: 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 th...
Open Graph Description: 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 PCANBasi...
X Description: 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 PCANBasi...
Opengraph URL: https://github.com/mac-can/PCBUSB-Library/issues/5
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Distribute as a Python Pip Package?","articleBody":"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:\r\n1.) Install PCANBasic.py into the `site-packages` (pip does this for you if you follow the proper layout)\r\n2.) Install `libPCBUSB.0.10.1.dylib` into a known location, like `/usr/local/lib` then run `ldconfig`. This might be some custom code.\r\n\r\n* [Here's a guide on how to 'package' your python code](https://packaging.python.org/en/latest/tutorials/packaging-projects/)\r\n* [This user is trying to install shared libraries](https://stackoverflow.com/questions/37316177/distribute-a-python-package-with-a-compiled-dynamic-shared-library) too so that might help.\r\n\r\nUsers would then run:\r\n```bash\r\n$ python3 -m pip install pcanbasic\r\n```\r\nThen in their python code they can just `import` it\r\n```python\r\n# import the class PCANBasic from the module named PCANBasic\r\nfrom PCANBasic import PCANBasic\r\n```\r\nAnd it works!\r\n","author":{"url":"https://github.com/emrainey","@type":"Person","name":"emrainey"},"datePublished":"2022-01-07T16:13:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/5/PCBUSB-Library/issues/5"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c10da05b-a6d0-7258-cf62-21d066e486fc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8596:1BBA5:17FF558:22BA594:6A4BC4DC |
| html-safe-nonce | 83fa3395273ac087d6cdc8f6783db72d4ae3e3594f834b9c8b0452c85781968a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTk2OjFCQkE1OjE3RkY1NTg6MjJCQTU5NDo2QTRCQzREQyIsInZpc2l0b3JfaWQiOiI3NzI3ODY3OTUyMzM5MDc2MzE3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 77b27e16a2bbc7d63056f8cf9c05250917eeee538c6d34255ace34f4182fcbb8 |
| hovercard-subject-tag | issue:1096457440 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/mac-can/PCBUSB-Library/5/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7bd66d22fc320d8f6859c335d29b55045576342e7671de940171ee5294e5a111/mac-can/PCBUSB-Library/issues/5 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7bd66d22fc320d8f6859c335d29b55045576342e7671de940171ee5294e5a111/mac-can/PCBUSB-Library/issues/5 |
| og:image:alt | 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 PCANBasi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | emrainey |
| hostname | github.com |
| expected-hostname | github.com |
| None | 14aa00ce5bdb34d0eefb5facbffd7de9e144c688d8a93ef8df902d5f94b51dd7 |
| turbo-cache-control | no-preview |
| go-import | github.com/mac-can/PCBUSB-Library git https://github.com/mac-can/PCBUSB-Library.git |
| octolytics-dimension-user_id | 61076724 |
| octolytics-dimension-user_login | mac-can |
| octolytics-dimension-repository_id | 275540406 |
| octolytics-dimension-repository_nwo | mac-can/PCBUSB-Library |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 275540406 |
| octolytics-dimension-repository_network_root_nwo | mac-can/PCBUSB-Library |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 58b8f89190447502561829f30862aa0a99d53367 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width