From: Tomasz Rybak <serpent@debian.org>
Date: Tue, 21 Feb 2023 11:23:15 +0100
Subject: Run scripts under Python 3

Forwarded: not-needed
Last-Update: 2022-11-19

Ensure that setup.py, tests and examples use Python 3 for running.
---
 doc/Makefile              | 4 ++--
 examples/demo.py          | 2 +-
 examples/svm.py           | 2 +-
 test/test_array.py        | 2 +-
 test/test_enqueue_copy.py | 2 +-
 5 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/doc/Makefile b/doc/Makefile
index e9ec9e3..b3e3ee8 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -4,7 +4,7 @@
 # You can set these variables from the command line, and also
 # from the environment for the first two.
 SPHINXOPTS    ?= -n
-SPHINXBUILD   ?= python $(shell which sphinx-build)
+SPHINXBUILD   ?= python3 $(shell which sphinx-build)
 SOURCEDIR     = .
 BUILDDIR      = _build
 
@@ -13,7 +13,7 @@ help:
 	@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
 
 constants:
-	python make_constants.py > constants.inc
+	python3 make_constants.py > constants.inc
 
 .PHONY: help Makefile
 
diff --git a/examples/demo.py b/examples/demo.py
index 29e145e..e2bf1b4 100644
--- a/examples/demo.py
+++ b/examples/demo.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
 
 import numpy as np
 
diff --git a/examples/svm.py b/examples/svm.py
index eec8c7c..cd96075 100644
--- a/examples/svm.py
+++ b/examples/svm.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
 
 import numpy as np
 
diff --git a/test/test_array.py b/test/test_array.py
index 656437a..de93988 100644
--- a/test/test_array.py
+++ b/test/test_array.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/python3
 
 __copyright__ = "Copyright (C) 2009 Andreas Kloeckner"
 
diff --git a/test/test_enqueue_copy.py b/test/test_enqueue_copy.py
index 1737e78..f180668 100644
--- a/test/test_enqueue_copy.py
+++ b/test/test_enqueue_copy.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/python3
 
 __copyright__ = "Copyright (C) 2016 Shane J. Latham"
 
