19 |
return 0 |
return 0 |
20 |
} |
} |
21 |
|
|
22 |
|
get_python_includedir() |
23 |
|
{ |
24 |
|
local pyinc |
25 |
|
pyinc=$(python -c 'from distutils import sysconfig; print sysconfig.get_python_inc()') |
26 |
|
echo "${pyinc}" |
27 |
|
return 0 |
28 |
|
} |
29 |
|
|
30 |
python_src_prepare() |
python_src_prepare() |
31 |
{ |
{ |
32 |
munpack ${SRCFILE} || die |
munpack ${SRCFILE} || die |
45 |
then |
then |
46 |
mconfigure $@ || die |
mconfigure $@ || die |
47 |
mmake || die |
mmake || die |
48 |
|
elif [[ -e install.py ]] |
49 |
|
then |
50 |
|
echo "install.py found - nothing to compile here." |
51 |
else |
else |
52 |
mmake || die |
mmake || die |
53 |
fi |
fi |
61 |
elif [[ -e waf ]] |
elif [[ -e waf ]] |
62 |
then |
then |
63 |
python waf install --destdir=${BINDIR} $@ || die |
python waf install --destdir=${BINDIR} $@ || die |
64 |
|
elif [[ -e install.py ]] |
65 |
|
then |
66 |
|
python install.py --prefix=/usr --files-only --destdir=${BINDIR} $@ || die |
67 |
else |
else |
68 |
mmake DESTDIR=${BINDIR} install || die |
mmake DESTDIR=${BINDIR} install || die |
69 |
fi |
fi |