forked from shingara/zshkit
-
Notifications
You must be signed in to change notification settings - Fork 2
/
06_python.zsh
executable file
·32 lines (26 loc) · 957 Bytes
/
06_python.zsh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# vim: ft=zsh
export PYTHONSTARTUP="${XDG_CONFIG_HOME}/python/pythonrc"
export WORKON_HOME="${P}/pyvenvs/"
export IPYTHONDIR="${XDG_CONFIG_HOME}/python/ipython"
export VIRTUALENVWRAPPER_PYTHON='/opt/local/bin/python3.12'
export VIRTUALENVWRAPPER_VIRTUALENV='/opt/local/bin/virtualenv-3.12'
export VIRTUALENVWRAPPER_VIRTUALENV_CLONE='/opt/local/bin/virtualenv-clone-3.12'
source /opt/local/bin/virtualenvwrapper_lazy.sh-3.12
function python_dev() {
export PYTHONUNBUFFERED="enable"
export PYTHONUTF8="1"
export PYTHONWARNINGS="default"
export PYTHONDEVMODE="enable"
export PYTHONASYNCIODEBUG="enable"
export PYTHONFAULTHANDLER="enable"
}
function python_debug() {
export PYTHONINSPECT="enable"
export PYTHONVERBOSE="enable"
export PYTHONPROFILEIMPORTTIME="enable"
}
function python_mem_debug() {
export PYTHONTRACEMALLOC="enable"
export PYTHONMALLOC="pymalloc_debug"
}
alias serve_me='python -m http.server'