Debian Codegraph @

debian/patches/force-python3-script-executable.patch

raw symbols SCIP
1 Author: Diane Trout <[email protected]>
2 Description: Use path to Debian's python3 interpreter
3 Forwarded: no
4
5 --- a/skmisc/_build_utils/copy_version_to_dist.py
6 +++ b/skmisc/_build_utils/copy_version_to_dist.py
7 @@ -1,4 +1,4 @@
8 -#!/usr/bin/env python
9 +#!/usr/bin/python3
10 import os
11 import shutil
12 from pathlib import Path
13 --- a/skmisc/_build_utils/version_please.py
14 +++ b/skmisc/_build_utils/version_please.py
15 @@ -1,4 +1,4 @@
16 -#!/usr/bin/env python
17 +#!/usr/bin/python3
18 from __future__ import annotations
19
20 import os
21 --- a/spin
22 +++ b/spin
23 @@ -1,4 +1,4 @@
24 -#!/usr/bin/env python
25 +#!/usr/bin/python3
26 #
27 # Example stub for running `python -m spin`
28 #
29 --- a/tools/wheels/check_license.py
30 +++ b/tools/wheels/check_license.py
31 @@ -1,4 +1,4 @@
32 -#!/usr/bin/env python
33 +#!/usr/bin/python3
34 """
35 check_license.py [MODULE]
36
37 --- a/tools/wheels/cibw_before_build_linux.sh
38 +++ b/tools/wheels/cibw_before_build_linux.sh
39 @@ -1,13 +1,13 @@
40 set -xe
41
42 PROJECT_DIR="$1"
43 -PLATFORM=$(PYTHONPATH=tools python -c "import openblas_support; print(openblas_support.get_plat())")
44 +PLATFORM=$(PYTHONPATH=tools python3 -c "import openblas_support; print(openblas_support.get_plat())")
45
46 printenv
47 # Update license
48 cat $PROJECT_DIR/tools/wheels/LICENSE_linux.txt >> $PROJECT_DIR/LICENSE.txt
49
50 # Install Openblas
51 -basedir=$(python tools/openblas_support.py)
52 +basedir=$(python3 tools/openblas_support.py)
53 cp -r $basedir/lib/* /usr/local/lib
54 cp $basedir/include/* /usr/local/include
55 --- a/tools/wheels/cibw_test_command.sh
56 +++ b/tools/wheels/cibw_test_command.sh
57 @@ -4,9 +4,9 @@
58
59 # python $PROJECT_DIR/tools/wheels/check_license.py
60 if [[ $(uname) == "Linux" || $(uname) == "Darwin" ]] ; then
61 - python $PROJECT_DIR/tools/openblas_support.py --check_version
62 + python3 $PROJECT_DIR/tools/openblas_support.py --check_version
63 fi
64 echo $?
65
66 -python -c "import sys; import skmisc; sys.exit(skmisc.test())"
67 +python3 -c "import sys; import skmisc; sys.exit(skmisc.test())"
68 echo $?