-
Notifications
You must be signed in to change notification settings - Fork 497
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
Make pyocd-pemicro an optional dependency #1319
Comments
cc @Gargy007 Ok, I'll need to review the referenced issues. You won't find any mentions in the source since pyocd-pemicro is a plugin. And yes, it's only required for specific hardware, the PEMicro debug probes. That's true for all the built-in probe plugins, too, though. Very unfortunately, there is no way to declare an optional dependency for Python packages which gets installed by default. One option would be to move pyocd-pemicro to an "extras" dependency, so pyocd would be installed like |
Given the unclear licensing and source code around those upstream shared libraries (which could contain backdoored code and therefore can not be trusted) that would be a good approach I believe. |
Hello,
next release of pypemicro, makes the license for binaries much more clear.
There is no reason makes changes in SPSDK.
Please be patient for some days.
pá 11. 2. 2022 v 11:43 odesílatel David Runge ***@***.***>
napsal:
… One option would be to move pyocd-pemicro to an "extras" dependency, so
pyocd would be installed like pip install pyocd[pemicro] if you wanted
the plugin.
Given the unclear licensing and source code around those upstream shared
libraries (which could contain backdoored code and therefore can not be
trusted) that would be a good approach I believe.
—
Reply to this email directly, view it on GitHub
<#1319 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABS2LTFQVTGBJGUQZ5IWB5TU2TR3PANCNFSM5MR46FWA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@Gargy007 Thanks for the update on the licensing question. |
Remove version pinning: nxp-mcuxpresso/spsdk#35 Remove use of pypemicro: nxp-mcuxpresso/pypemicro#10 nxp-mcuxpresso/spsdk#30 Remove use of pyocd-pemicro: pyocd/pyOCD#1319 Remove use of libusbsio: nxp-mcuxpresso/spsdk#36 git-svn-id: file:///srv/repos/svn-community/svn@1133098 9fca08f4-af9d-4005-b8df-a31f2cc04f65
Remove version pinning: nxp-mcuxpresso/spsdk#35 Remove use of pypemicro: nxp-mcuxpresso/pypemicro#10 nxp-mcuxpresso/spsdk#30 Remove use of pyocd-pemicro: pyocd/pyOCD#1319 Remove use of libusbsio: nxp-mcuxpresso/spsdk#36 git-svn-id: file:///srv/repos/svn-community/svn@1133098 9fca08f4-af9d-4005-b8df-a31f2cc04f65
@Gargy007 I'm leaning strongly towards making pyocd-pemicro optional, and will probably make the change for the next release (v0.34 since it's more than a simple bug fix). You'd still be able to install at the same time as pyocd with Aside from the license/binaries concern, there is #1129. If pyocd-pemicro is installed, running pyocd in PowerShell causes the shell to crash when pyocd exits. Btw, one way to work around the binaries concern is to remove the binary libs from pypemicro and require the user to install the PEMicro drivers themselves. This is the approach taken for J-Link. While it's an extra step, it's probably (?) reasonable to assume the user will want to install the PEMicro tools anyway. Or you could separate out the libs into yet another package (e.g. pypemicro-libraries), and potentially use an optional install to get them (e.g., |
Update: The change to make pyocd-pemicro optional has been merged in #1359. It's available in the Closing this issue now that the change has been implemented. |
Hi! As I'm currently looking into packaging pyocd for Arch Linux, I'm evaluating the project's dependencies.
I noticed that pypemicro is a dependency via pyocd-pemicro. Unfortunately there are a few open questions around the use of pypemicro in a packaging context (see nxp-mcuxpresso/pypemicro#10 and nxp-mcuxpresso/pypemicro#11) and pyocd-pemicro (see pyocd/pyocd-pemicro#7).
Would it be possible to make pyocd-pemicro an optional dependency? It appears to only be required for very specific hardware (I can't find any direct mentions in the source code otherwise):
pyOCD/docs/debug_probes.md
Line 23 in 7d164d9
It would help in getting pyocd packaged sooner while the above issues are being settled and it would additionally allow for users not to install dependencies they do not need.
The text was updated successfully, but these errors were encountered: