private certificates for Python (Pip, Poetry)
This commit is contained in:
parent
1e670e4441
commit
406902acb1
1 changed files with 4 additions and 0 deletions
23
dot_bashrc.d/python.bashrc.tmpl
Normal file
23
dot_bashrc.d/python.bashrc.tmpl
Normal 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
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue