asdf-python
asdf-python copied to clipboard
I guess ansible-base is being set as default when installing ansible with pip
I think maybe doing reshim is overwriting ansible executable with ansible-base executable:
❯ pip3 install ansible -U
Collecting ansible
Downloading ansible-2.10.6.tar.gz (29.6 MB)
|████████████████████████████████| 29.6 MB 393 kB/s
Collecting ansible-base<2.11,>=2.10.5
Downloading ansible-base-2.10.5.tar.gz (5.7 MB)
|████████████████████████████████| 5.7 MB 949 kB/s
As you can see is installing .6 for ansible and .5 for ansible-base.
After installing, reshim and current version:
❯ ./ansible --version
ansible 2.10.5
config file = None
configured module search path = ['/Users/vitorjr/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /Users/vitorjr/.asdf/installs/python/3.9.1/lib/python3.9/site-packages/ansible
executable location = ./ansible
python version = 3.9.1 (default, Jan 27 2021, 17:37:54) [Clang 12.0.0 (clang-1200.0.32.28)]
Not sure it it's a asdf python plugin problem related, just passing the information.
Thanks for the amazing work.
best regards, Vitor Jr.
Well, just terraformed an ec2 box and give a shot with python/pip without asdf, and same result:
ubuntu@ip-172-50-132-186:~$ ansible --version
ansible 2.10.5
config file = None
configured module search path = ['/home/ubuntu/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/ubuntu/.local/lib/python3.6/site-packages/ansible
executable location = /home/ubuntu/.local/bin/ansible
python version = 3.6.9 (default, Oct 8 2020, 12:12:24) [GCC 8.4.0]
ubuntu@ip-172-50-132-186:~$
I don't know why this bothers me so much, 'cause when installing I can clearly see different versions for different packages:
Collecting ansible
Downloading ansible-2.10.6.tar.gz (29.6 MB)
|████████████████████████████████| 29.6 MB 101 kB/s
Collecting ansible-base<2.11,>=2.10.5
Downloading ansible-base-2.10.5.tar.gz (5.7 MB)
But definitely not a asdf problem.
best regards, Vitor Jr.