OILS / build / py2.sh View on Github | oils.pub

20 lines, 9 significant
1# Usage: source build/py2.sh
2#
3# Duplicates build/dev-shell.sh, for _bin/shwrap stubs
4#
5# It's also sourced by _build/oils.sh via build/ninja-rules-cpp.sh, so it must
6# remain POSIX SHELL. That's for benchmarks/time_.py
7
8# LEGACY
9# put 'python2' in $PATH
10ROOT_WEDGE_DIR=/wedge/oils-for-unix.org
11readonly _WEDGE_PY2_DIR=$ROOT_WEDGE_DIR/pkg/python2/2.7.18/bin
12if test -d $_WEDGE_PY2_DIR; then
13 export PATH="$_WEDGE_PY2_DIR:$PATH"
14fi
15
16# 2025-10: also in build/dev-shell.sh
17_DEPS_BIN_DIR=$PWD/../oils.DEPS/bin
18if test -d $_DEPS_BIN_DIR; then
19 export PATH="$_DEPS_BIN_DIR:$PATH"
20fi