mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-03-11 06:37:31 +00:00
newapkbuild: change python to python3
This commit is contained in:
parent
20f5ea679b
commit
1264917824
@ -100,7 +100,7 @@ __EOF__
|
||||
|
||||
build_python() {
|
||||
cat >>APKBUILD<<__EOF__
|
||||
python setup.py build
|
||||
python3 setup.py build
|
||||
__EOF__
|
||||
}
|
||||
|
||||
@ -130,7 +130,7 @@ __EOF__
|
||||
|
||||
package_python() {
|
||||
cat >>APKBUILD<<__EOF__
|
||||
python setup.py install --prefix=/usr --root="\$pkgdir"
|
||||
python3 setup.py install --prefix=/usr --root="\$pkgdir"
|
||||
__EOF__
|
||||
}
|
||||
|
||||
@ -169,11 +169,11 @@ newaport() {
|
||||
fi
|
||||
|
||||
if [ -z "$depends" ] &&[ "$buildtype" = "python" ]; then
|
||||
depends="python"
|
||||
depends="python3"
|
||||
fi
|
||||
|
||||
case "$buildtype" in
|
||||
python) makedepends="python-dev";;
|
||||
python) makedepends="python3-dev";;
|
||||
cmake) makedepends="cmake";;
|
||||
meson) makedepends="meson";;
|
||||
*) makedepends="\$depends_dev";;
|
||||
|
Loading…
Reference in New Issue
Block a user