Latest
This commit is contained in:
parent
5dd6332389
commit
111c4bf3f3
3 changed files with 1 additions and 17 deletions
|
@ -499,21 +499,6 @@ installSystemPips() {
|
|||
logg info 'Ensuring macOS system python3 has latest version of pip'
|
||||
/Library/Developer/CommandLineTools/usr/bin/python3 -m pip install --upgrade pip
|
||||
fi
|
||||
|
||||
### Python
|
||||
if command -v pip > /dev/null; then
|
||||
if command -v python > /dev/null; then
|
||||
if ! python -m certifi > /dev/null; then
|
||||
pip install certifi
|
||||
else
|
||||
logg info 'certifi is available to python'
|
||||
fi
|
||||
else
|
||||
logg warn 'python is not available on the system'
|
||||
fi
|
||||
else
|
||||
logg warn 'pip is not available on the system'
|
||||
fi
|
||||
|
||||
### Python 3
|
||||
if command -v pip3 > /dev/null; then
|
||||
|
|
|
@ -26,7 +26,6 @@ brew "jq"
|
|||
brew "moreutils"
|
||||
brew "node"
|
||||
brew "progress"
|
||||
brew "python@2"
|
||||
brew "python@3.11"
|
||||
brew "ruby"
|
||||
tap "go-task/tap"
|
||||
|
|
|
@ -414,7 +414,7 @@ if [ -f "$HOME/.local/etc/ssl/curl/cacert.pem" ]; then
|
|||
export SSL_CERT_FILE="$CERT_PATH"
|
||||
export REQUESTS_CA_BUNDLE="$CERT_PATH"
|
||||
elif command -v python3 > /dev/null; then
|
||||
export CERT_PATH="$(python3 -m certifi)" || export CERT_PATH="$(python -m certifi)"
|
||||
export CERT_PATH="$(python3 -m certifi)" || export CERT_PATH="$(python -m certifi)" || export CERT_PATH="$HOME/.local/etc/ssl/curl/cacert.pem"
|
||||
export SSL_CERT_FILE="$CERT_PATH"
|
||||
export REQUESTS_CA_BUNDLE="$CERT_PATH"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue