This commit is contained in:
Brian Zalewski 2024-01-02 00:54:04 +00:00
parent 5dd6332389
commit 111c4bf3f3
3 changed files with 1 additions and 17 deletions

View file

@ -499,21 +499,6 @@ installSystemPips() {
logg info 'Ensuring macOS system python3 has latest version of pip' logg info 'Ensuring macOS system python3 has latest version of pip'
/Library/Developer/CommandLineTools/usr/bin/python3 -m pip install --upgrade pip /Library/Developer/CommandLineTools/usr/bin/python3 -m pip install --upgrade pip
fi 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 ### Python 3
if command -v pip3 > /dev/null; then if command -v pip3 > /dev/null; then

View file

@ -26,7 +26,6 @@ brew "jq"
brew "moreutils" brew "moreutils"
brew "node" brew "node"
brew "progress" brew "progress"
brew "python@2"
brew "python@3.11" brew "python@3.11"
brew "ruby" brew "ruby"
tap "go-task/tap" tap "go-task/tap"

View file

@ -414,7 +414,7 @@ if [ -f "$HOME/.local/etc/ssl/curl/cacert.pem" ]; then
export SSL_CERT_FILE="$CERT_PATH" export SSL_CERT_FILE="$CERT_PATH"
export REQUESTS_CA_BUNDLE="$CERT_PATH" export REQUESTS_CA_BUNDLE="$CERT_PATH"
elif command -v python3 > /dev/null; then 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 SSL_CERT_FILE="$CERT_PATH"
export REQUESTS_CA_BUNDLE="$CERT_PATH" export REQUESTS_CA_BUNDLE="$CERT_PATH"
fi fi