8000 check which python/python.exe we must move. · kdzm/python-for-android@da9335a · GitHub
[go: up one dir, main page]

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
< 8721 td data-grid-cell-id="diff-246ddabd7ec2a55505eeee3a26798ceeb0e510ccfa751c9014dd0cb57f0916d6-31-27-2" data-line-anchor="diff-246ddabd7ec2a55505eeee3a26798ceeb0e510ccfa751c9014dd0cb57f0916d6L31" data-selected="false" role="gridcell" style="background-color:var(--diffBlob-deletionLine-bgColor, var(--diffBlob-deletion-bgColor-line));padding-right:24px" tabindex="-1" valign="top" class="focusable-grid-cell diff-text-cell left-side-diff-cell border-right left-side">-
#try cp hostpgen ../prebuilt/Python-$PYVERSION/
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
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)
0