private certificates for Python (Pip, Poetry)

This commit is contained in:
Yax 2021-12-16 13:11:56 +01:00
parent 1e670e4441
commit 406902acb1

View file

@ -0,0 +1,23 @@
# -------------------------------------------------------------
# PYTHON
# -------------------------------------------------------------
[[ -s $HOME/.pythonz/etc/bashrc ]] && source $HOME/.pythonz/etc/bashrc
if [ -f "$HOME/.pythonz/pythons/CPython-3.9.9/bin/python" ]; then
export PATH="$HOME/.pythonz/pythons/CPython-3.9.9/bin:$PATH"
fi
if [ -f "$HOME/.pythonz/pythons/CPython-3.9.9/bin/pew" ]; then
source "$(pew shell_config)"
fi
if [ -d "$HOME/.poetry/bin" ]; then
export PATH="$HOME/.poetry/bin:$PATH"
fi
if [ -f "{{ .extra_ca_cert }}" ]; then
export REQUESTS_CA_BUNDLE={{ .extra_ca_cert }}
fi