Skip to content

hkml: make it easier to use with pipx#23

Merged
sjp38 merged 1 commit intosjp38:masterfrom
ryncsn:master
Mar 20, 2026
Merged

hkml: make it easier to use with pipx#23
sjp38 merged 1 commit intosjp38:masterfrom
ryncsn:master

Conversation

@ryncsn
Copy link
Contributor

@ryncsn ryncsn commented Mar 20, 2026

Hi SJ,

I use MacOS for my daily Linux kernel development, trying hkml isn't that easy there.

On MacOS or some distros, there is no python request lib from package manager, and it's hard to setup a global venv, using hkml globally is not cleanly doable with following error:

...
File "/projects/hackermail/src/_hkml_sashiko_dev.py", line 10, in
import requests
ModuleNotFoundError: No module named 'requests'

So add a proper project spec so pipx can install this tool and it can be used anywhere.

Now it can be installed globally using:

pipx install .

Pipx is the recommended tool manager.

Signed-off-by: Kairui Song kasong@tencent.com

On MacOS or distros without python request lib, using hkml globally is not cleanly doable with following error: ... File "<path>/projects/hackermail/src/_hkml_sashiko_dev.py", line 10, in <module> import requests ModuleNotFoundError: No module named 'requests' So add a proper project spec so pipx can install this tool and it can be used anywhere. Now it can be installed globally using: `pipx install .` Signed-off-by: Kairui Song <kasong@tencent.com>
@sjp38
Copy link
Owner

sjp38 commented Mar 20, 2026

Thank you for catching and fixing this, Kairui!

@sjp38 sjp38 merged commit 038a60b into sjp38:master Mar 20, 2026
1 check passed
@sjp38
Copy link
Owner

sjp38 commented Mar 20, 2026

Fyi, I will also enclose the import requests with try and an exception handler, so that users can having no requests can still use hkml. ETA: this weekend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants