asdf-community / asdf-community/asdf-python

Exclude pip modules from reshim?

Abierto
#167 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Shell
Estrellas
729
Forks
65
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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
```

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Comienza reproduciendo `asdf reshim python` con `python-apt` instalado e inspecciona cómo se genera el shim de `apt`. El cambio debe proporcionar una forma de excluir comandos seleccionados proporcionados por pip, sin dejar de enlazar comandos útiles como `ansible`, mientras `apt` del sistema sigue estando disponible.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
python
Área
cli, tooling
Tipo de issue
Nueva funcionalidad
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.