Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude pip modules from reshim? #167

Open
dadastoor opened this issue Aug 28, 2023 · 0 comments
Open

Exclude pip modules from reshim? #167

dadastoor opened this issue Aug 28, 2023 · 0 comments

Comments

@dadastoor
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant