Skip to content

Commit

Permalink
Use pip --version, not pip list, to test for working pip
Browse files Browse the repository at this point in the history
`pip list` can be very time consuming if there are many packages
installed. `pip --version` is fast regardless.
  • Loading branch information
lpsinger committed Jan 10, 2024
1 parent 047b88d commit 99c4752
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/actions/autoinstall/python/check-py-tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ let { spawnSync } = require('child_process')
module.exports = function checkPyTools () {

let cmd = 'python3'
let args = [ '-m', 'pip', 'list' ]
let args = [ '-m', 'pip', '--version' ]
let raw = spawnSync(cmd, args, {
cwd: __dirname,
shell: true,
Expand Down

0 comments on commit 99c4752

Please sign in to comment.