Magellan Linux

Diff of /trunk/include/python.sminc

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

revision 33233 by niro, Fri Oct 13 08:33:10 2017 UTC revision 33234 by niro, Mon Oct 21 09:06:20 2019 UTC
# Line 9  then Line 9  then
9   >= dev-lang/python-2.7"   >= dev-lang/python-2.7"
10  fi  fi
11    
12    # call meson include in the smage2, to prevent unnecessary dependencies
13    #sminclude meson
14    
15  # get the major.minor current installed python version  # get the major.minor current installed python version
16  # -> ex 2.4  # -> ex 2.4
17  mget-python-version()  mget-python-version()
# Line 70  python_docompile() Line 73  python_docompile()
73   then   then
74   ${MAGE_PYTHON_EXEC} waf configure --prefix=/usr --libdir=/usr/$(mlibdir) $@ || die   ${MAGE_PYTHON_EXEC} waf configure --prefix=/usr --libdir=/usr/$(mlibdir) $@ || die
75   ${MAGE_PYTHON_EXEC} waf build $@ || die   ${MAGE_PYTHON_EXEC} waf build $@ || die
76     elif [[ -e meson.build ]]
77     then
78     meson_configure -D python=${MAGE_PYTHON_EXEC} || die
79     mninja || die
80   elif [[ -e configure ]]   elif [[ -e configure ]]
81   then   then
82   if [[ ${MULTILIB_BUILD} = true ]] && [[ ! -z $(typeset -f oldmconfigure) ]]  && [[ ! -z $(typeset -f oldmmake) ]]   if [[ ${MULTILIB_BUILD} = true ]] && [[ ! -z $(typeset -f oldmconfigure) ]]  && [[ ! -z $(typeset -f oldmmake) ]]
# Line 96  python_doinstall() Line 103  python_doinstall()
103   elif [[ -e waf ]]   elif [[ -e waf ]]
104   then   then
105   ${MAGE_PYTHON_EXEC} waf install --destdir=${BINDIR} $@ || die   ${MAGE_PYTHON_EXEC} waf install --destdir=${BINDIR} $@ || die
106     elif [[ -e meson.build ]]
107     then
108     DESTDIR=${BINDIR} meson install || die
109   elif [[ -e install.py ]]   elif [[ -e install.py ]]
110   then   then
111   ${MAGE_PYTHON_EXEC} install.py --prefix=/usr --files-only --destdir=${BINDIR} $@ || die   ${MAGE_PYTHON_EXEC} install.py --prefix=/usr --files-only --destdir=${BINDIR} $@ || die

Legend:
Removed from v.33233  
changed lines
  Added in v.33234