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 \ |