-
Notifications
You must be signed in to change notification settings - Fork 31
/
.envrc
30 lines (24 loc) · 781 Bytes
/
.envrc
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
# -*- mode: sh; -*-
export ABQ_HOME=${PWD}
export ABQ_CXX_HOME="${ABQ_HOME}/cxx"
export LD_LIBRARY_PATH="${ABQ_HOME}/lib:${LD_LIBRARY_PATH}"
export PYTHONPATH="${ABQ_HOME}/lib:${PYTHONPATH}"
export CCACHE_MAXSIZE=10G
export CCACHE_CPP2=true
export CCACHE_HARDLINK=true
export CCACHE_SLOPPINESS=file_macro,time_macros,include_file_mtime,include_file_ctime,file_stat_matches
# pyenv-virtualenv
# (rootdir)/.envrc : direnv configuration file
# see https://direnv.net/
# pyversion=3.9-dev
pyversion=$(pyenv version | gawk -F" " '{ print $1 }')
pvenv=$(basename $PWD)
# 1.
# use python ${pyversion}
# 2. Create the virtualenv if not yet done
# layout virtualenv ${pyversion} ${pvenv}
# 3. activate it
# layout activate ${pvenv}-${pyversion}
unset PS1
use asdf local
layout poetry