1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
|
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"
|