Skip to content

Ignore hid import when it's not required#4

Merged
mwasilew merged 1 commit into
qualcomm:mainfrom
mwasilew:ignore-hid
Jun 10, 2026
Merged

Ignore hid import when it's not required#4
mwasilew merged 1 commit into
qualcomm:mainfrom
mwasilew:ignore-hid

Conversation

@mwasilew

@mwasilew mwasilew commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

hid module is only required for Bughopper v2 board. This patch makes the hid import optional and allows pytac to work without hid and it's dependencies when using other debug boards.

hid module is only required for Bughopper v2 board. This patch makes the
hid import optional and allows pytac to work without hid and it's
dependencies when using other debug boards.

Signed-off-by: Milosz Wasilewski <milosz.wasilewski@oss.qualcomm.com>
@mwasilew mwasilew requested a review from SuMere June 4, 2026 07:40
@SuMere

SuMere commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

What about requirements.txt? If a user installs dependencies from there ignoring hid lib is not useful. I suppose most of the users would install dependencies from there.

@mwasilew

Copy link
Copy Markdown
Contributor Author

What about requirements.txt? If a user installs dependencies from there ignoring hid lib is not useful. I suppose most of the users would install dependencies from there.

The problem is that installing python module doesn't force dependencies installation. For alpaca platforms hid dependencies are not required. This patch intends to fix the issue for non-bughopper users. Should be transparent otherwise.

@mwasilew mwasilew merged commit 476a057 into qualcomm:main Jun 10, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants