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
|
From: Ole Streicher <olebole@debian.org>
Date: Sun, 25 Jun 2023 13:13:35 +0200
Subject: Use Python3 versions of python and cython in build
---
meson.build | 2 +-
skimage/_build_utils/copyfiles.py | 2 +-
skimage/_build_utils/cythoner.py | 4 ++--
skimage/_build_utils/gcc_build_bitness.py | 2 +-
skimage/_build_utils/tempita.py | 2 +-
5 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/meson.build b/meson.build
index 7316390..32e8029 100644
--- a/meson.build
+++ b/meson.build
@@ -56,7 +56,7 @@ if not cc.links('', name: '-Wl,--version-script', args: ['-shared', version_link
version_link_args = []
endif
-cython = find_program('cython')
+cython = find_program('cython3')
pythran = find_program('pythran')
tempita = files('skimage/_build_utils/tempita.py')
copier = find_program(['cp', 'skimage/_build_utils/copyfiles.py'])
diff --git a/skimage/_build_utils/copyfiles.py b/skimage/_build_utils/copyfiles.py
index 0c53d7a..d0dd8e9 100755
--- a/skimage/_build_utils/copyfiles.py
+++ b/skimage/_build_utils/copyfiles.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""Platform independent file copier script"""
import shutil
diff --git a/skimage/_build_utils/cythoner.py b/skimage/_build_utils/cythoner.py
index 83bc34a..1c24f2e 100755
--- a/skimage/_build_utils/cythoner.py
+++ b/skimage/_build_utils/cythoner.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""Scipy variant of Cython command
Cython, as applied to single pyx file.
@@ -19,7 +19,7 @@ def main():
sbp.run(
[
- 'cython',
+ 'cython3',
'-3',
'--fast-fail',
'--output-file',
diff --git a/skimage/_build_utils/gcc_build_bitness.py b/skimage/_build_utils/gcc_build_bitness.py
index b48e995..3c515ea 100755
--- a/skimage/_build_utils/gcc_build_bitness.py
+++ b/skimage/_build_utils/gcc_build_bitness.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""Detect bitness (32 or 64) of Mingw-w64 gcc build target on Windows."""
import re
diff --git a/skimage/_build_utils/tempita.py b/skimage/_build_utils/tempita.py
index 3cb3c51..1733206 100755
--- a/skimage/_build_utils/tempita.py
+++ b/skimage/_build_utils/tempita.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
import sys
import os
|