diff --git a/templates/python.yml b/templates/python.yml
index b26ef93399f3bf7e51ef2daf62225feeeb08a93d..41175a063341b6c21823fec6358b8dff60847e95 100644
--- a/templates/python.yml
+++ b/templates/python.yml
@@ -16,7 +16,9 @@
 build-wheel:
   extends: .python3-build
   script:
-    - python3 setup.py check --verbose --metadata --restructuredtext --strict
+    - >-
+      [ ! -f setup.py ] ||
+      python3 setup.py check --verbose --metadata --restructuredtext --strict
     - python3 -m build
   after_script:
     - &twine_check twine check dist/*.whl