aboutsummaryrefslogtreecommitdiff
path: root/scripts/icu/0001-disable-tests.patch
blob: e39989e4caf8a9a55f76ea38a4b5309eef1b48a9 (plain) (blame)
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
--- configure.ac.orig	2019-10-21 17:47:38.842427296 +0000
+++ configure.ac	2019-10-21 17:49:33.787593270 +0000
@@ -199,10 +199,6 @@ fi
 #AC_CHECK_PROG(AUTOCONF, autoconf, autoconf, true)
 #AC_CHECK_PROG(STRIP, strip, strip, true)
 
-# TODO(ICU-20301): Remove fallback to Python 2.
-AC_CHECK_PROGS(PYTHON, python3 "py -3" python "py")
-AC_SUBST(PYTHON)
-
 # Check for the platform make
 AC_PATH_PROGS(U_MAKE, gmake gnumake, make)
 AC_SUBST(U_MAKE)
@@ -1412,40 +1408,9 @@ AC_CONFIG_FILES([icudefs.mk \
 		samples/cal/Makefile samples/layout/Makefile])
 AC_OUTPUT
 
-if test -z "$PYTHON";
-then
-    echo "" > data/rules.mk
-    echo "" > test/testdata/rules.mk
-else
-    if test -f "$srcdir/data/locales/root.txt";
-    then
-        echo "Spawning Python to generate data/rules.mk..."
-        PYTHONPATH="$srcdir/python" \
-            $PYTHON -m icutools.databuilder \
-            --mode gnumake \
-            --seqmode parallel \
-            --src_dir "$srcdir/data" \
-            --filter_file "$ICU_DATA_FILTER_FILE" \
-            $ICU_DATA_BUILDTOOL_OPTS \
-            > data/rules.mk
-        if test "$?" != "0"; then
-            AC_MSG_ERROR(Python failed to run; see above error.)
-        fi
-    else
-      echo "Not rebuilding data/rules.mk, assuming prebuilt data in data/in"
-      touch data/rules.mk
-    fi
-    echo "Spawning Python to generate test/testdata/rules.mk..."
-    PYTHONPATH="$srcdir/python" \
-        $PYTHON -m icutools.databuilder \
-        --mode gnumake \
-        --seqmode parallel \
-        --src_dir "$srcdir/test/testdata" \
-        > test/testdata/rules.mk
-    if test "$?" != "0"; then
-        AC_MSG_ERROR(Python failed to run; see above error.)
-    fi
-fi
+# Disable tests
+echo "" > data/rules.mk
+echo "" > test/testdata/rules.mk
 
 echo
 echo "ICU for C/C++ $VERSION is ready to be built."