From: Marc Herbert <marc.herbert@linux.intel.com>
To: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Cc: tools@kernel.org
Subject: Re: Switch b4/README.txt to "pipx install" instead of "pip install"?
Date: Fri, 21 Nov 2025 13:03:46 -0800 [thread overview]
Message-ID: <m2ms4ft7wt.fsf@C02X38VBJHD2mac.jf.intel.com> (raw)
In-Reply-To: <20251118-quirky-resolute-aardwolf-f0befa@lemur> (Konstantin Ryabitsev's message of "Tue, 18 Nov 2025 18:02:11 -0500")
Konstantin Ryabitsev <konstantin@linuxfoundation.org> writes:
> On Wed, Nov 05, 2025 at 04:20:11PM -0800, Marc Herbert wrote:
>> So, should the README simply switch to "pipx install"?
>
> If you'd like to submit a patch, I'll be happy to apply it.
Sent. If you'd like to fix my English or make some other minor changes,
please just go ahead and do not ask for my permission.
>> Also, I'm not an expert but I think installing from source is probably
>> better done like this:
>>
>> git clone --recursive b4
>> cd b4
>> pipx install -e .
>>
>> This allows running any version _and_ from the checkout directory
>> without depending on any "b4.sh" indirection. The main difference is:
>> dependencies are isolated/protected in the virtualenv. Some users may
>> want this, others not.
>
> This would require having to rerun `pipx install -e .` each time the repo is
> pulled though, no?
Usually not. Possibly yes for upgrading dependencies or some other "big"
change like some packaging re-organization, but not for pure code
changes - that's the whole point. Give it a try?
The only drawback is the same as the advantage: too much virtual env
isolation! It hits you when you try to install and use "on the fly" some
fancy debugger, test plugin, tracing library, Python IDE,... They are
generally "not found". Then you either need to explicity add them to the
manifest, or use some obscure pipx option, or revert to "pip instal
--break-system-packages -e .", or to "b4.sh",...
No silver bullet :-( But for quickly running pure code changes, "pipx
install -e ." is in my experience the best so far.
"uv" is also very useful but much more complex. pipx really makes
simple things easy.
next prev parent reply other threads:[~2025-11-21 21:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-06 0:20 Switch b4/README.txt to "pipx install" instead of "pip install"? Marc Herbert
2025-11-18 23:02 ` Konstantin Ryabitsev
2025-11-21 21:03 ` Marc Herbert [this message]
2025-11-21 21:23 ` Konstantin Ryabitsev
2025-11-21 22:33 ` Marc Herbert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2ms4ft7wt.fsf@C02X38VBJHD2mac.jf.intel.com \
--to=marc.herbert@linux.intel.com \
--cc=konstantin@linuxfoundation.org \
--cc=tools@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).