asdf-community / asdf-community/asdf-python

Exclude pip modules from reshim?

Đang mở
#167 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Shell
Star
729
Fork
65
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện `asdf reshim python` khi đã cài đặt `python-apt` và kiểm tra cách shim `apt` được tạo. Thay đổi này cần cung cấp một cách để loại trừ các lệnh do pip cung cấp được chọn, đồng thời tiếp tục liên kết các lệnh hữu ích như `ansible`, trong khi vẫn giữ cho `apt` của hệ thống khả dụng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
python
Lĩnh vực
cli, tooling
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.