newapkbuild: treat packages that start with py[0-9]- as python packages.

This commit is contained in:
Leo 2020-02-17 15:33:16 -03:00 committed by Natanael Copa
parent 5cc73d98c3
commit d0ce42112f

View File

@ -316,7 +316,7 @@ __EOF__
buildtype="cmake"
elif [ -r "$sdir"/Makefile ]; then
buildtype="make"
elif [ -r "$sdir"/setup.py ]; then
elif [ -r "$sdir"/setup.py ] || [ "${pn#py[0-9]-}" != "$pn" ]; then
buildtype="python"
elif [ -r "$sdir"/Cargo.toml ]; then
buildtype="rust"