Magellan Linux

Diff of /trunk/include/python.sminc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 33281 by niro, Wed Oct 23 11:27:48 2019 UTC revision 33630 by niro, Thu Aug 10 15:16:07 2023 UTC
# Line 6  then Line 6  then
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
# Line 27  mget-python-version() Line 27  mget-python-version()
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
# Line 36  mget-python-libdir() Line 36  mget-python-libdir()
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

Legend:
Removed from v.33281  
changed lines
  Added in v.33630