Magellan Linux

Diff of /smage/trunk/include/python.sminc

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

revision 3 by niro, Sat Jan 2 16:59:51 2010 UTC revision 913 by niro, Tue Dec 7 21:21:11 2010 UTC
# Line 1  Line 1 
1  # $Header: /alx-cvs/smage-eglibc/include/python.sminc,v 1.1.1.1 2008/02/27 09:26:22 niro Exp $  # $Header: /magellan-cvs/smage/include/python.sminc,v 1.4 2007/01/23 20:46:41 niro Exp $
2    
3  # get the major.minor current installed python version  # get the major.minor current installed python version
4  # -> ex 2.4  # -> ex 2.4
# Line 27  python_src_prepare() Line 27  python_src_prepare()
27  python_src_compile()  python_src_compile()
28  {  {
29   cd ${SRCDIR}   cd ${SRCDIR}
30   python setup.py build "$@" || die  
31     if [[ -e setup.py ]]
32     then
33     python setup.py build "$@" || die
34     elif [[ -e configure ]]
35     then
36     mconfigure "$@" || die
37     mmake || die
38     else
39     mmake || die
40     fi
41  }  }
42    
43  python_src_install()  python_src_install()
44  {  {
45   cd ${SRCDIR}   cd ${SRCDIR}
46   python setup.py install --no-compile --root ${BINDIR} "$@" || die  
47     if [[ -e setup.py ]]
48     then
49     python setup.py install --no-compile --root ${BINDIR} "$@" || die
50     else
51     mmake DESTDIR=${BINDIR} install || die
52     fi
53    
54   local i   local i
55   for i in ABOUT-NLS AUTHORS BUGS CHANGES ChangeLog COPYING \   for i in ABOUT-NLS AUTHORS BUGS CHANGES ChangeLog COPYING \

Legend:
Removed from v.3  
changed lines
  Added in v.913