6 |
MAGE_PYTHON_EXEC="python" |
MAGE_PYTHON_EXEC="python" |
7 |
|
|
8 |
SDEPEND="${SDEPEND} |
SDEPEND="${SDEPEND} |
9 |
>= dev-lang/python-2.7" |
>= dev-lang/python-3" |
10 |
fi |
fi |
11 |
|
|
12 |
# call meson include in the smage2, to prevent unnecessary dependencies |
# call meson include in the smage2, to prevent unnecessary dependencies |
27 |
mget-python-libdir() |
mget-python-libdir() |
28 |
{ |
{ |
29 |
local pylib |
local pylib |
30 |
pylib=$(${MAGE_PYTHON_EXEC} -c 'from distutils import sysconfig; print (sysconfig.get_python_lib())') |
pylib=$(${MAGE_PYTHON_EXEC} -c 'import sysconfig; print (sysconfig.get_path("platlib"))') |
31 |
[[ -z ${pylib} ]] && return 1 |
[[ -z ${pylib} ]] && return 1 |
32 |
echo "${pylib}" |
echo "${pylib}" |
33 |
return 0 |
return 0 |
36 |
mget-python-includedir() |
mget-python-includedir() |
37 |
{ |
{ |
38 |
local pyinc |
local pyinc |
39 |
pyinc=$(${MAGE_PYTHON_EXEC} -c 'from distutils import sysconfig; print (sysconfig.get_python_inc())') |
pyinc=$(${MAGE_PYTHON_EXEC} -c 'import sysconfig; print (sysconfig.get_path("platinclude"))') |
40 |
[[ -z ${pyinc} ]] && return 1 |
[[ -z ${pyinc} ]] && return 1 |
41 |
echo "${pyinc}" |
echo "${pyinc}" |
42 |
return 0 |
return 0 |