ubuntu 24 (and most likely debian 12) does not allow to install evolve
Chris Green
cl at isbd.net
Tue Jul 16 14:25:12 UTC 2024
On Tue, Jul 16, 2024 at 03:19:38PM +0100, Chris Green wrote:
> On Tue, Jul 16, 2024 at 03:59:30PM +0200, Sietse Brouwer wrote:
> > Hi Uwe,
> >
> > Pipx lets you install and run python packages in isolated environments.
> > This is the most robust installation method for Mercurial + hg-evolve +
> > hg-git that I am aware of.
> >
> > # version with comments at the bottom of this mail
> > sudo apt install pipx
> > pipx install mercurial
> > pipx inject mercurial hg-evolve hg-git # Omit hg-git if you don't use
> > it
> >
> > Later, when a new release comes out, you can run
> >
> > pipx upgrade mercurial
> >
> > Cheers,
> > Sietse
> >
> > ---- Commented version: ----
> >
> > # Acquire pipx
> > sudo apt install pipx
> >
> > # Create a virtual environment, install Mercurial in it
> > # To force a particular version, write e.g. mercurial==6.4
> > # To install from source, write -e your/path/to/mercurial
> > pipx install mercurial
> >
> > # Add hg-git and hg-evolve to the Mercurial installation
> > pipx inject mercurial hg-git hg-evolve
>
> If one installs mercurial this way does it still 'just work' by
> running hg anywhere on one's system or do you have to get into the
> right place/environment to use it?
>
> (I have simply been using --break-system-packages to avoid this, with
> no ill effects so far)
>
Answer - yes it does! Excellent. It makes using isolated python
environments transparent. I guess it may use more disk space because
it will install packages separately for each environment that needs
one but that's no great problem nowadays and Python packages are
mostly not very large.
--
Chris Green
More information about the Mercurial
mailing list