Skip to content

Commit

Permalink
Enable packages installed by python3 -m pip
Browse files Browse the repository at this point in the history
In order to detect packages installed by pip but using the python3
module (-m), we add a snippet listing for "python3" that points
to the "pip3" package inventorying method

Fixes tern-tools#1020

Signed-off-by: Nisha K <nishak@vmware.com>
  • Loading branch information
Nisha K committed Feb 11, 2022
1 parent 95a54ac commit 307c063
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion tern/analyze/default/command_lib/snippets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,22 @@ pip3:
- 'wheel'
packages: 'pip3'

python3:
install:
- 'install'
remove:
- 'uninstall'
ignore:
- 'freeze'
- 'list'
- 'download'
- 'show'
- 'check'
- 'config'
- 'hash'
- 'wheel'
packages: 'pip3'

gem:
install:
- 'install'
Expand Down Expand Up @@ -196,4 +212,4 @@ go:
- 'remove'
ignore:
- 'clean'
packages: 'go'
packages: 'go'

0 comments on commit 307c063

Please sign in to comment.