Skip to content

Commit da9335a

Browse files
committed
check which python/python.exe we must move.
1 parent f1247cf commit da9335a

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

recipes/hostpython/recipe.sh

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,16 @@ function build_hostpython() {
2424

2525
try ./configure
2626
try make -j5
27-
try mv python hostpython
2827
try mv Parser/pgen hostpgen
29-
#try mkdir -p ../prebuilt/Python-$PYVERSION/lib
30-
#try cp hostpython ../prebuilt/Python-$PYVERSION/
31-
#try cp hostpgen ../prebuilt/Python-$PYVERSION/
32-
#try cp build/lib.*/*.so ../prebuilt/Python-$PYVERSION/lib/
33-
#try cd ..
28+
29+
if [ -f python.exe ]; then
30+
try mv python.exe hostpython
31+
elif [ -f python ]; then
32+
try mv python hostpython
33+
else
34+
error "Unable to found the python executable?"
35+
exit 1
36+
fi
3437
}
3538

3639
function postbuild_hostpython() {

0 commit comments

Comments
 (0)