summaryrefslogtreecommitdiffstats
path: root/packaging/macos/jhb/etc/jhb.conf/pip.sh
blob: 5804468c5d052ec5f7a428fdc43f260f415725cb (plain)
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
# SPDX-FileCopyrightText: 2021 René de Hesselle <dehesselle@web.de>
#
# SPDX-License-Identifier: GPL-2.0-or-later

### description ################################################################

# Redirect pip cache directories.

### shellcheck #################################################################

# shellcheck shell=bash # no shebang as this file is intended to be sourced
# shellcheck disable=SC2034 # we only use exports if we really need them

### variables ##################################################################

export PIP_CACHE_DIR=$VAR_DIR/cache/pip       # instead ~/Library/Caches/pip
export PIPENV_CACHE_DIR=$VAR_DIR/cache/pipenv # instead ~/Library/Caches/pipenv
export PYTHONPYCACHEPREFIX=$VAR_DIR/cache/pycache

### functions ##################################################################

# Nothing here.

### main #######################################################################

# Nothing here.