Skip to content

Commit

Permalink
Cleanup pip install in get-sys-utils-cm
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunsuresh committed Aug 4, 2023
1 parent 01a474c commit 367eb84
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cm-mlops/script/get-sys-utils-cm/do_pip_installs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

PIP_EXTRA=`python3 -c "import pkg_resources; print(' --break-system-packages ' if int(pkg_resources.get_distribution('pip').version.split('.')[0]) >= 23 else '')"`
cmd="python3 -m pip install -r ${CM_TMP_CURRENT_SCRIPT_PATH}/requirements.txt ${CM_PYTHON_PIP_USER} ${CM_PYTHON_PIP_COMMON_EXTRA} ${PIP_EXTRA}"
echo $cmd
eval $cmd

0 comments on commit 367eb84

Please sign in to comment.