Skip to content

Use local source tree for zkg in shiv command - #247

Merged
bbannier merged 1 commit into
masterfrom
topic/christian/shiv-local-zkg
Aug 19, 2026
Merged

Use local source tree for zkg in shiv command#247
bbannier merged 1 commit into
masterfrom
topic/christian/shiv-local-zkg

Conversation

@ckreibich

Copy link
Copy Markdown
Member

In my local Zeek tree I swapped the auxil/package-manager submodule out for some of our current branch work, and after installing I noticed that the zkg version kept reporting

$ zkg --version
zkg 3.1.0

That is, the local version of zkg made no difference to the install. I think that's because simply passing zkg to shiv causes it to just pass that on to pip install, which then pulls it down from PyPI, where 3.1.0 is the latest.

The first thing I noticed was that I kept getting

Using cached zkg-3.1.0-py2.py3-none-any.whl (72 kB)

in the build, which I eventually tracked down to the contents of ~/.cache/pip — not obvious. After blowing that away, I noticed it still did

Downloading zkg-3.1.0-py2.py3-none-any.whl (72 kB)

which eventually led me to this tweak after reading up on shiv. Seems to be working for me.

@bbannier fyi

By providing "zkg" we caused `pip install` to install from PyPI.
@ckreibich
ckreibich requested a review from bbannier August 19, 2026 03:38

@bbannier bbannier left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dio mio, thanks!

@bbannier
bbannier merged commit a2efb6c into master Aug 19, 2026
5 checks passed
@bbannier
bbannier deleted the topic/christian/shiv-local-zkg branch August 19, 2026 07:00
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