summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-02-17 15:33:16 -0300
committerNatanael Copa <ncopa@alpinelinux.org>2020-03-30 10:59:06 +0000
commitd0ce42112f844668323e072e0e36d63319ce7d7d (patch)
tree869e3fe1b3451d043ae5514ef2ea8b191a5d638a
parent5cc73d98c3bed3035a8486fb0244690410b61a1f (diff)
downloadabuild-d0ce42112f844668323e072e0e36d63319ce7d7d.tar.bz2
abuild-d0ce42112f844668323e072e0e36d63319ce7d7d.tar.xz
newapkbuild: treat packages that start with py[0-9]- as python packages.
-rw-r--r--newapkbuild.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/newapkbuild.in b/newapkbuild.in
index 0bbd4ee..6ce09d0 100644
--- a/newapkbuild.in
+++ b/newapkbuild.in
@@ -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"