summaryrefslogtreecommitdiffstats
path: root/newapkbuild.in
diff options
context:
space:
mode:
Diffstat (limited to 'newapkbuild.in')
-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"