aboutsummaryrefslogtreecommitdiff
blob: 56aa329c2511b31902a8a9ef9837d32f87edf445 (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
27
28
29
30
31
32
33
34
# @ECLASS_VARIABLE: PYTHON_DEPS
# @DESCRIPTION:
# See the variable docs in the related gentoo repo eclass.

# @ECLASS_VARIABLE: PYTHON_USEDEP
# @DESCRIPTION:
# See the variable docs in the related gentoo repo eclass.

# @ECLASS_VARIABLE: PYTHON_REQUIRED_USE
# @DESCRIPTION:
# See the variable docs in the related gentoo repo eclass.

_python_set_impls() {
	local i slot
	PYTHON_DEPS="|| ("
	for i in "${PYTHON_COMPAT[@]}"; do
		case ${i} in
			python*)
				slot=${i#python}
				slot=${slot/_/.}
				PYTHON_DEPS+=" dev-lang/python:${slot}"
				;;
			pypy3)
				PYTHON_DEPS+=" >=dev-lang/pypy-3.10:="
				;;
		esac
	done
	PYTHON_DEPS+=" )"
	PYTHON_REQUIRED_USE='I-DO-NOT-EXIST-IN-PYTHON-ANY-R1'
}
_python_set_impls

python_gen_any_dep() { :; }
python_gen_cond_dep() { :; }