Rename CTS "build" Python module to "ctsbuild"
authorRicardo Garcia <rgarcia@igalia.com>
Fri, 9 Dec 2022 14:38:39 +0000 (15:38 +0100)
committerPiotr Byszewski <piotr.byszewski@mobica.com>
Mon, 19 Dec 2022 10:47:46 +0000 (10:47 +0000)
This avoid name conflicts with a popular Python module that may be
installed in the system.

VK-GL-CTS issue: 4162
VK-GL-CTS public issue: 334
Components: Framework

Change-Id: Ic89cbf59e0f9bc00c0a94fb303f3c2051332365f

27 files changed:
external/fetch_kc_cts.py
external/fetch_sources.py
external/openglcts/scripts/build_caselists.py
external/openglcts/scripts/build_mustpass.py
external/openglcts/scripts/mustpass.py
external/openglcts/scripts/verify_kc_cts_rev.py
external/vulkancts/scripts/amber_verify.py
external/vulkancts/scripts/build_mustpass.py
external/vulkancts/scripts/build_spirv_binaries.py
external/vulkancts/scripts/gen_framework.py
external/vulkancts/scripts/gen_framework_c.py
external/vulkancts/scripts/gen_framework_sc.py
scripts/android/build_apk.py
scripts/android/install_apk.py
scripts/build_android_mustpass.py
scripts/build_caselists.py
scripts/check_build_sanity.py
scripts/ctsbuild/__init__.py [moved from scripts/build/__init__.py with 100% similarity]
scripts/ctsbuild/build.py [moved from scripts/build/build.py with 100% similarity]
scripts/ctsbuild/common.py [moved from scripts/build/common.py with 100% similarity]
scripts/ctsbuild/config.py [moved from scripts/build/config.py with 100% similarity]
scripts/gen_android_mk.py
scripts/khr_util/registry_cache.py
scripts/launchcontrol_build.py
scripts/make_release.py
scripts/mustpass.py
scripts/run_nightly.py

index affb843..1d1fb57 100644 (file)
@@ -29,7 +29,7 @@ import subprocess
 from fetch_sources import *
 sys.path.append(os.path.join(os.path.dirname(__file__), "..", "scripts"))
 
-from build.common import *
+from ctsbuild.common import *
 
 EXTERNAL_DIR   = os.path.realpath(os.path.normpath(os.path.dirname(__file__)))
 SHA1 = "3059c07a20ac64f636296a7ef200dadc1ce7d37a"
index 817c62e..72be2af 100644 (file)
@@ -32,7 +32,7 @@ import stat
 
 sys.path.append(os.path.join(os.path.dirname(__file__), "..", "scripts"))
 
-from build.common import *
+from ctsbuild.common import *
 
 EXTERNAL_DIR   = os.path.realpath(os.path.normpath(os.path.dirname(__file__)))
 
index 68bbde1..7f92232 100644 (file)
@@ -29,9 +29,9 @@ import shutil
 
 sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..", "..", "scripts"))
 
-from build.common import *
-from build.config import *
-from build.build import *
+from ctsbuild.common import *
+from ctsbuild.config import *
+from ctsbuild.build import *
 
 
 class Module:
index ed612d6..a15af89 100644 (file)
@@ -29,8 +29,8 @@ from mustpass import Project, Package, Mustpass, Configuration, include, exclude
 
 sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..", "..", "scripts"))
 
-from build.common import DEQP_DIR
-from build.config import ANY_GENERATOR, BuildConfig
+from ctsbuild.common import DEQP_DIR
+from ctsbuild.config import ANY_GENERATOR, BuildConfig
 
 
 COPYRIGHT_DECLARATION = """\
index b0fd963..07335dc 100644 (file)
@@ -29,9 +29,9 @@ from build_caselists import Module, getModuleByName, getBuildConfig, genCaseList
 
 sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..", "..", "scripts"))
 
-from build.common import *
-from build.config import ANY_GENERATOR
-from build.build import build
+from ctsbuild.common import *
+from ctsbuild.config import ANY_GENERATOR
+from ctsbuild.build import build
 from fnmatch import fnmatch
 from copy import copy
 
index 0d58e0e..04e68eb 100644 (file)
@@ -30,7 +30,7 @@ sys.path.append(os.path.join(os.path.dirname(__file__), "..", ".."))
 from fetch_kc_cts import SHA1
 
 sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..", "..", "scripts"))
-from build.common import *
+from ctsbuild.common import *
 
 
 EXTERNAL_DIR    = os.path.realpath(os.path.normpath(os.path.join(os.path.dirname(__file__), "..", "..")))
index eecb0d2..dfd0788 100644 (file)
@@ -27,9 +27,9 @@ import tempfile
 
 sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..", "..", "scripts"))
 
-from build.common import *
-from build.config import *
-from build.build import *
+from ctsbuild.common import *
+from ctsbuild.config import *
+from ctsbuild.build import *
 
 class Module:
        def __init__ (self, name, dirName, binName):
index 4d9ace7..09b3d74 100644 (file)
@@ -25,8 +25,8 @@ import sys
 
 sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..", "..", "scripts"))
 
-from build.common import DEQP_DIR
-from build.config import ANY_GENERATOR
+from ctsbuild.common import DEQP_DIR
+from ctsbuild.config import ANY_GENERATOR
 from build_caselists import Module, getModuleByName, getBuildConfig, DEFAULT_BUILD_DIR, DEFAULT_TARGET
 from mustpass import Project, Package, Mustpass, Configuration, include, exclude, genMustpassLists, parseBuildConfigFromCmdLineArgs
 
@@ -77,4 +77,4 @@ MUSTPASS_LISTS                = [
        ]
 
 if __name__ == "__main__":
-       genMustpassLists(MUSTPASS_LISTS, ANY_GENERATOR, parseBuildConfigFromCmdLineArgs())
\ No newline at end of file
+       genMustpassLists(MUSTPASS_LISTS, ANY_GENERATOR, parseBuildConfigFromCmdLineArgs())
index f048228..328a800 100644 (file)
@@ -30,9 +30,9 @@ import fnmatch
 
 sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..", "..", "scripts"))
 
-from build.common import *
-from build.config import *
-from build.build import *
+from ctsbuild.common import *
+from ctsbuild.config import *
+from ctsbuild.build import *
 
 class Module:
        def __init__ (self, name, dirName, binName):
index ef1270f..9afa9e5 100755 (executable)
@@ -33,7 +33,7 @@ from collections import OrderedDict
 
 sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..", "..", "scripts"))
 
-from build.common import DEQP_DIR, execute
+from ctsbuild.common import DEQP_DIR, execute
 from khr_util.format import indentLines, writeInlFile
 
 VULKAN_XML_DIR                         = os.path.join(os.path.dirname(__file__), "..", "..", "vulkan-docs", "src", "xml")
index fa27d30..dfe799d 100644 (file)
@@ -27,7 +27,7 @@ import re
 
 sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..", "..", "scripts"))
 
-from build.common import DEQP_DIR, execute
+from ctsbuild.common import DEQP_DIR, execute
 from khr_util.format import writeInlFile
 
 VULKAN_HEADERS_INCLUDE_DIR       = os.path.join(os.path.dirname(__file__), "..", "..", "vulkan-docs", "src", "include")
index dc7dc98..d736114 100644 (file)
@@ -32,7 +32,7 @@ from collections import OrderedDict
 
 sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..", "..", "scripts"))
 
-from build.common import DEQP_DIR, execute
+from ctsbuild.common import DEQP_DIR, execute
 from khr_util.format import indentLines, writeInlFile
 
 VULKAN_HEADERS_INCLUDE_DIR     = os.path.join(os.path.dirname(__file__), "..", "..", "vulkan-docs", "src", "include")
index 6fc2859..ef7d6ae 100644 (file)
@@ -39,9 +39,9 @@ import xml.etree.ElementTree
 # Import from <root>/scripts
 sys.path.append(os.path.join(os.path.dirname(__file__), ".."))
 
-from build.common import *
-from build.config import *
-from build.build import *
+from ctsbuild.common import *
+from ctsbuild.config import *
+from ctsbuild.build import *
 
 class SDKEnv:
        def __init__(self, path):
index 1076dc8..372d197 100644 (file)
@@ -36,7 +36,7 @@ from build_apk import parsePackageName
 # Import from <root>/scripts
 sys.path.append(os.path.join(os.path.dirname(__file__), ".."))
 
-from build.common import *
+from ctsbuild.common import *
 
 class Device:
        def __init__(self, serial, product, model, device):
index 1aa28bf..63136e1 100644 (file)
@@ -20,8 +20,8 @@
 #
 #-------------------------------------------------------------------------
 
-from build.common import DEQP_DIR
-from build.config import ANY_GENERATOR
+from ctsbuild.common import DEQP_DIR
+from ctsbuild.config import ANY_GENERATOR
 from build_caselists import Module, getModuleByName, getBuildConfig, DEFAULT_BUILD_DIR, DEFAULT_TARGET
 from mustpass import Project, Package, Mustpass, Configuration, include, exclude, genMustpassLists, parseBuildConfigFromCmdLineArgs
 
index e2edec5..9ba2fe0 100644 (file)
@@ -20,9 +20,9 @@
 #
 #-------------------------------------------------------------------------
 
-from build.common import *
-from build.config import *
-from build.build import *
+from ctsbuild.common import *
+from ctsbuild.config import *
+from ctsbuild.build import *
 
 import os
 import sys
index d53aaa9..5af43dc 100644 (file)
@@ -25,8 +25,8 @@ import argparse
 import tempfile
 import sys
 
-from build.common import *
-from build.build import *
+from ctsbuild.common import *
+from ctsbuild.build import *
 
 pythonExecutable = sys.executable or "python"
 
index 0871749..6f7a1dd 100644 (file)
@@ -24,7 +24,7 @@ import os
 import posixpath
 from fnmatch import fnmatch
 
-from build.common import DEQP_DIR, writeFile
+from ctsbuild.common import DEQP_DIR, writeFile
 
 SRC_ROOTS = [
        "execserver",
index 9c61a04..aae6f5b 100644 (file)
@@ -28,7 +28,7 @@ from . import registry
 
 sys.path.append(os.path.join(os.path.dirname(__file__), ".."))
 
-from build.common import *
+from ctsbuild.common import *
 
 BASE_URL = ""
 
index 95a0ff8..c8a0c07 100644 (file)
@@ -21,8 +21,8 @@
 #-------------------------------------------------------------------------
 
 import os
-from build.common import *
-from build.build import *
+from ctsbuild.common import *
+from ctsbuild.build import *
 from argparse import ArgumentParser
 import multiprocessing
 from build_android_mustpass import *
index 3dd253d..3a0b12e 100644 (file)
@@ -37,9 +37,9 @@ import tempfile
 import posixpath
 import subprocess
 
-from build.common import *
-from build.config import *
-from build.build import *
+from ctsbuild.common import *
+from ctsbuild.config import *
+from ctsbuild.build import *
 
 pythonExecutable = sys.executable or "python"
 
index b46a6a8..c27d37f 100644 (file)
@@ -20,9 +20,9 @@
 #
 #-------------------------------------------------------------------------
 
-from build.common import *
-from build.config import ANY_GENERATOR
-from build.build import build
+from ctsbuild.common import *
+from ctsbuild.config import ANY_GENERATOR
+from ctsbuild.build import build
 from build_caselists import Module, getModuleByName, getBuildConfig, genCaseList, getCaseListPath, DEFAULT_BUILD_DIR, DEFAULT_TARGET
 from fnmatch import fnmatch
 from copy import copy
index 9397828..42e6a4e 100644 (file)
@@ -20,9 +20,9 @@
 #
 #-------------------------------------------------------------------------
 
-from build.common import *
-from build.config import *
-from build.build import *
+from ctsbuild.common import *
+from ctsbuild.config import *
+from ctsbuild.build import *
 
 import os
 import sys