asdf-community / asdf-community/asdf-python

I guess ansible-base is being set as default when installing ansible with pip

Open
#87 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
730
Forks
65
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the report with `pip3 install ansible -U`, then run asdf reshim and inspect the `./ansible` executable and its reported version. Trace which executable reshim selects; done means installing ansible 2.10.6 does not make `./ansible --version` report ansible-base 2.10.5.

Written by the indexing model from the issue text.

Assessment

Tech stack
ansible, python
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.