how to install evolve in MacOS (or python pip)

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

how to install evolve in MacOS (or python pip)

Uwe Brauer

Hi

I am also using a MacBook Air running 10.15 and installed, for the
moment, fink for a more linux like environment.

I could successfully install mercurial (5.2 but that is fine, since some
of my extension would run with new version) but there seems no way to
install (python) pip, which would allow me easily to install evolve.

Any ideas.

Thanks and regards

_______________________________________________
Mercurial mailing list
[hidden email]
https://www.mercurial-scm.org/mailman/listinfo/mercurial
Reply | Threaded
Open this post in threaded view
|

Re: how to install evolve in MacOS (or python pip)

Christian Ebert-3
* Uwe Brauer on Friday, March 19, 2021 at 22:06:38 +0100:
> I am also using a MacBook Air running 10.15 and installed, for the
> moment, fink for a more linux like environment.
>
> I could successfully install mercurial (5.2 but that is fine, since some
> of my extension would run with new version) but there seems no way to
> install (python) pip, which would allow me easily to install evolve.
>
> Any ideas.

$ fink list pip-py

--
LAST SHIP HOME                      --->> https://lastshiphome.de
Official Selection                          DOK.fest München 2018
German Ocean Film Award                        CineMare Kiel 2019
Best Documentary Feature   Wales International Film Festival 2020
_______________________________________________
Mercurial mailing list
[hidden email]
https://www.mercurial-scm.org/mailman/listinfo/mercurial
Reply | Threaded
Open this post in threaded view
|

[evolve not found even if installed via pip] (was: (was: how to install evolve in MacOS (or python pip)))

Uwe Brauer
>>> "CE" == Christian Ebert <[hidden email]> writes:

> * Uwe Brauer on Friday, March 19, 2021 at 22:06:38 +0100:
>> I am also using a MacBook Air running 10.15 and installed, for the
>> moment, fink for a more linux like environment.
>> I could successfully install mercurial (5.2 but that is fine, since
>> some
>> of my extension would run with new version) but there seems no way to
>> install (python) pip, which would allow me easily to install evolve.
>> Any ideas.

> $ fink list pip-py

Thanks:

 so I changed into my cloned evolve repository and run
pip3 install --user .
It installs

But when I run

Hg status

Failed to import Extension evolve no module named evolve

_______________________________________________
Mercurial mailing list
[hidden email]
https://www.mercurial-scm.org/mailman/listinfo/mercurial

smime.p7s (7K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [evolve not found even if installed via pip]

Christian Ebert-3
* Uwe Brauer on Saturday, March 20, 2021 at 08:21:49 +0100:

>>>> "CE" == Christian Ebert <[hidden email]> writes:
>> * Uwe Brauer on Friday, March 19, 2021 at 22:06:38 +0100:
>>> I am also using a MacBook Air running 10.15 and installed, for the
>>> moment, fink for a more linux like environment.
>>> I could successfully install mercurial (5.2 but that is fine, since
>>> some
>>> of my extension would run with new version) but there seems no way to
>>> install (python) pip, which would allow me easily to install evolve.
>>> Any ideas.
>
>> $ fink list pip-py
>
> Thanks:
>
> so I changed into my cloned evolve repository and run
> pip3 install --user .
> It installs
>
> But when I run
>
> Hg status
>
> Failed to import Extension evolve no module named evolve

Probably you need to tell fink's python3 about $HOME/lib/python
where you installed the extension e.g. via PYTHONPATH env. I use
altinstall.pth:

$ cat /opt/sw/lib/python3.8/site-packages/altinstall.pth
import os, site; site.addsitedir(os.path.expanduser('~/lib/python')); site.addsitedir('/usr/local/lib/python3.8/site-packages');

And of coourse you also need to tell fink's hg where to find
evolve. I am not using evolve, so I don't know whether you also
have to specify the path in hgrc when you're setting up the
extension.

--
LAST SHIP HOME                      --->> https://lastshiphome.de
Official Selection                          DOK.fest München 2018
German Ocean Film Award                        CineMare Kiel 2019
Best Documentary Feature   Wales International Film Festival 2020
_______________________________________________
Mercurial mailing list
[hidden email]
https://www.mercurial-scm.org/mailman/listinfo/mercurial
Reply | Threaded
Open this post in threaded view
|

Re: [evolve not found even if installed via pip]

Uwe Brauer

> * Uwe Brauer on Saturday, March 20, 2021 at 08:21:49 +0100:

Hm
I found out that

Pip3 install evolve --user .

Results in
,----
|
| Building wheels for collected packages: hg-evolve
|   Building wheel for hg-evolve (setup.py) ... done
|   Created wheel for hg-evolve: filename=hg_evolve-10.1.0-cp38-none-any.whl size=212209 sha256=307ca3268521094797ab90c1212cf9c97d91c7bf174d2b68545088fdf14675f0
|   Stored in directory: /private/var/folders/j1/7bbsk0jj6nxd5yxndqwvb1t00000gn/T/pip-ephem-wheel-cache-i9f8n6gp/wheels/32/5a/b1/ae025aed6fe69bf981e9bc4d8c9e1f7cfdd95e527e84c25424
| Successfully built hg-evolve
| Installing collected packages: hg-evolve
|   Found existing installation: hg-evolve 10.1.0
|     Uninstalling hg-evolve-10.1.0:
|       Successfully uninstalled hg-evolve-10.1.0
| Successfully installed hg-evolve-10.1.0
| WARNING: You are using pip version 19.2.3, however version 21.0.1 is available.
| You should consider upgrading via the 'pip install --upgrade pip' command.
|
`----


But in fact it lands in

/User/oub/Library/Caches/com.apple.python/private/var/folders/j1/7bbsk0jj6nxd5yxndqwvb1t00000gn/T/pip-install-ciy2djwn/hg-evolve
/User/oub/Library/Caches/com.apple.python/private/var/folders/j1/7bbsk0jj6nxd5yxndqwvb1t00000gn/T/pip-install-9gico4lg/hg-evolve


Which is sort of bizarre, shall I try to run it system whide

> Probably you need to tell fink's python3 about $HOME/lib/python where
> you installed the extension e.g. via PYTHONPATH env. I use
> altinstall.pth:

> $ cat /opt/sw/lib/python3.8/site-packages/altinstall.pth
> import os, site; site.addsitedir(os.path.expanduser('~/lib/python')); site.addsitedir('/usr/local/lib/python3.8/site-packages');

Not sure I understand, I don't have this altinstall (but I have python
3.6, so should I upgrade.

> And of coourse you also need to tell fink's hg where to find evolve. I
> am not using evolve, so I don't know whether you also have to specify
> the path in hgrc when you're setting up the extension.

I think I should not

_______________________________________________
Mercurial mailing list
[hidden email]
https://www.mercurial-scm.org/mailman/listinfo/mercurial

smime.p7s (7K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [evolve not found even if installed via pip]

Christian Ebert-3
* Uwe Brauer on Saturday, March 20, 2021 at 14:07:24 +0100:
>
>> * Uwe Brauer on Saturday, March 20, 2021 at 08:21:49 +0100:
>
> Hm
> I found out that
>
> Pip3 install evolve --user .

I don't have any Pip3 command ...

> Results in
> ,----
>|
>| Building wheels for collected packages: hg-evolve
>|  Building wheel for hg-evolve (setup.py) ... done
>|  Created wheel for hg-evolve: filename=hg_evolve-10.1.0-cp38-none-any.whl size=212209 sha256=307ca3268521094797ab90c1212cf9c97d91c7bf174d2b68545088fdf14675f0
>|  Stored in directory: /private/var/folders/j1/7bbsk0jj6nxd5yxndqwvb1t00000gn/T/pip-ephem-wheel-cache-i9f8n6gp/wheels/32/5a/b1/ae025aed6fe69bf981e9bc4d8c9e1f7cfdd95e527e84c25424
>| Successfully built hg-evolve
>| Installing collected packages: hg-evolve
>|  Found existing installation: hg-evolve 10.1.0
>|    Uninstalling hg-evolve-10.1.0:
>|      Successfully uninstalled hg-evolve-10.1.0
>| Successfully installed hg-evolve-10.1.0
>| WARNING: You are using pip version 19.2.3, however version 21.0.1 is available.
>| You should consider upgrading via the 'pip install --upgrade pip' command.
>|
> `----
>
>
> But in fact it lands in
>
> /User/oub/Library/Caches/com.apple.python/private/var/folders/j1/7bbsk0jj6nxd5yxndqwvb1t00000gn/T/pip-install-ciy2djwn/hg-evolve
> /User/oub/Library/Caches/com.apple.python/private/var/folders/j1/7bbsk0jj6nxd5yxndqwvb1t00000gn/T/pip-install-9gico4lg/hg-evolve

This looks a lot like you are using Apple's system python. Which
is probably some python2.7. - No, you say you have python 3.6
installed. Via pip?

You probably make your life easier to install a fink python. At
least that's what I have.

Then for me it installs in an expected --user location, i.e.
$HOME/.local/lib/python3.8/site-packages/

~$ pip --version
pip 18.1 from /opt/sw/lib/python3.8/site-packages/pip (python 3.8)
~$ pip install --user hg-evolve
Collecting hg-evolve
   Using cached https://files.pythonhosted.org/packages/e0/85/b277034d7da0c807d8a58b768f7487cd5df35a5d19caf719fa144bd1bb35/hg-evolve-10.3.0.tar.gz
Installing collected packages: hg-evolve
   Running setup.py install for hg-evolve ... done
Successfully installed hg-evolve-10.3.0
~$ ls -l .local/lib/python3.8/site-packages/
total 0
drwxr-xr-x  7 chris  wheel  224 20 Mar 15:36 hg_evolve-10.3.0-py3.8.egg-info
drwxr-xr-x  8 chris  wheel  256 20 Mar 15:36 hgext3rd
~$ hg --config extensions.evolve= help evolve | head -n 6
hg evolve [OPTIONS]...

aliases: stabilize, solve

solve troubled changesets in your repository


Disclaimer: I don't particularly like pip (except for the
possibility to uninstall) and build mercurial myself anyway.


--
._ __ | |__ | | _____  _(_) ___
| '_ \| '_ \| |/ _ \ \/ / |/ __|
| |_) | | | | | (_) >  <| | (__ _
| .__/|_| |_|_|\___/_/\_\_|\___(_)
|_|              https://phloxic.productions
_______________________________________________
Mercurial mailing list
[hidden email]
https://www.mercurial-scm.org/mailman/listinfo/mercurial
Reply | Threaded
Open this post in threaded view
|

Re: [evolve not found even if installed via pip]

Uwe Brauer

   > * Uwe Brauer on Saturday, March 20, 2021 at 14:07:24 +0100:

   > I don't have any Pip3 command ...


   > This looks a lot like you are using Apple's system python. Which is
   > probably some python2.7. - No, you say you have python 3.6 installed.
   > Via pip?

Ah, my bad. I did not

   > You probably make your life easier to install a fink python. At least
   > that's what I have.

   > Then for me it installs in an expected --user location, i.e.
   > $HOME/.local/lib/python3.8/site-packages/

   > ~$ pip --version
   > pip 18.1 from /opt/sw/lib/python3.8/site-packages/pip (python 3.8)
   > ~$ pip install --user hg-evolve
   > Collecting hg-evolve
   >   Using cached
   > https://files.pythonhosted.org/packages/e0/85/b277034d7da0c807d8a58b768f7487cd5df35a5d19caf719fa144bd1bb35/hg-evolve-10.3.0.tar.gz
   > Installing collected packages: hg-evolve
   >   Running setup.py install for hg-evolve ... done
   > Successfully installed hg-evolve-10.3.0
   > ~$ ls -l .local/lib/python3.8/site-packages/
   > total 0
   > drwxr-xr-x  7 chris  wheel  224 20 Mar 15:36 hg_evolve-10.3.0-py3.8.egg-info
   > drwxr-xr-x  8 chris  wheel  256 20 Mar 15:36 hgext3rd
   > ~$ hg --config extensions.evolve= help evolve | head -n 6
   > hg evolve [OPTIONS]...

   > aliases: stabilize, solve

   > solve troubled changesets in your repository

Right that works! Thanks. I am almost there.

   > Disclaimer: I don't particularly like pip (except for the possibility
   > to uninstall) and build mercurial myself anyway.

I am interested in that process, I tried on my mac machine

 make deb hoping that the resulting deb could be installed by fink. But
 it did not work


Make deb depends on debuild which is part of fink.

Uwe

_______________________________________________
Mercurial mailing list
[hidden email]
https://www.mercurial-scm.org/mailman/listinfo/mercurial

smime.p7s (7K) Download Attachment