asdf-community / asdf-community/asdf-python

Exclude pip modules from reshim?

Aberta
#167 0 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Shell
Estrelas
729
Forks
65
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

Hi there, I was wondering if it's possible to prevent some installed pip modules from being linked during a `asdf reshim python`.

For example, I have the `python-apt` module installed because I write python scripts to interact with apt, however this now overrides my base OS version's `apt` binary

I don't want to totally prevent python modules from being installed in my path because of things like `ansible`

```
~
$ apt --version
1.18

~
$ apt install apt
* Running: sudo apt-get install apt
Reading package lists... Done
Building dependency tree
Reading state information... Done
apt is already the newest version (2.0.9).
The following packages were automatically installed and are no longer required:
libfwupdplugin1 libxmlb1
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 20 not upgraded.

~
$ which apt
/home/ddastoor/.asdf/shims/apt

~
$ pip3 list | grep apt
apt-wrapper 1.18
pyapt 0.0.6
wrapt 1.15.0
```

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Direção de pesquisa

Comece reproduzindo `asdf reshim python` com `python-apt` instalado e inspecione como o shim `apt` é gerado. A alteração deve fornecer uma forma de excluir comandos selecionados fornecidos pelo pip e, ao mesmo tempo, continuar vinculando comandos úteis como `ansible`, mantendo o `apt` do sistema disponível.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
python
Domínio
cli, tooling
Tipo de issue
Funcionalidade
Dificuldade
4/5
Tempo estimado
3-5 dias
Status de atividade
Estagnada
Clareza
Razoavelmente clara
Facilidade para iniciantes
35/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.