newapkbuild: change python to python3

This commit is contained in:
Jakub Jirutka 2018-05-07 22:22:26 +02:00
parent 20f5ea679b
commit 1264917824

View File

@ -100,7 +100,7 @@ __EOF__
build_python() { build_python() {
cat >>APKBUILD<<__EOF__ cat >>APKBUILD<<__EOF__
python setup.py build python3 setup.py build
__EOF__ __EOF__
} }
@ -130,7 +130,7 @@ __EOF__
package_python() { package_python() {
cat >>APKBUILD<<__EOF__ cat >>APKBUILD<<__EOF__
python setup.py install --prefix=/usr --root="\$pkgdir" python3 setup.py install --prefix=/usr --root="\$pkgdir"
__EOF__ __EOF__
} }
@ -169,11 +169,11 @@ newaport() {
fi fi
if [ -z "$depends" ] &&[ "$buildtype" = "python" ]; then if [ -z "$depends" ] &&[ "$buildtype" = "python" ]; then
depends="python" depends="python3"
fi fi
case "$buildtype" in case "$buildtype" in
python) makedepends="python-dev";; python) makedepends="python3-dev";;
cmake) makedepends="cmake";; cmake) makedepends="cmake";;
meson) makedepends="meson";; meson) makedepends="meson";;
*) makedepends="\$depends_dev";; *) makedepends="\$depends_dev";;