• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# For bazel-in-bazel testing
2# Trick bazel into treating BUILD files under examples/* as being regular files
3# This lets us glob() up all the files inside the examples to make them inputs to tests
4# (Note, we cannot use `common --deleted_packages` because the bazel version command doesn't support it)
5# To update these lines, run tools/bazel_integration_test/update_deleted_packages.sh
6build --deleted_packages=examples/build_file_generation,examples/build_file_generation/random_number_generator,examples/bzlmod,examples/bzlmod_build_file_generation,examples/bzlmod_build_file_generation/other_module/other_module/pkg,examples/bzlmod_build_file_generation/runfiles,examples/bzlmod/entry_point,examples/bzlmod/libs/my_lib,examples/bzlmod/other_module,examples/bzlmod/other_module/other_module/pkg,examples/bzlmod/runfiles,examples/bzlmod/tests,examples/bzlmod/tests/other_module,examples/bzlmod/whl_mods,examples/multi_python_versions/libs/my_lib,examples/multi_python_versions/requirements,examples/multi_python_versions/tests,examples/pip_install,examples/pip_parse,examples/pip_parse_vendored,examples/pip_repository_annotations,examples/py_proto_library,tests/compile_pip_requirements,tests/compile_pip_requirements_test_from_external_workspace,tests/ignore_root_user_error,tests/pip_repository_entry_points
7query --deleted_packages=examples/build_file_generation,examples/build_file_generation/random_number_generator,examples/bzlmod,examples/bzlmod_build_file_generation,examples/bzlmod_build_file_generation/other_module/other_module/pkg,examples/bzlmod_build_file_generation/runfiles,examples/bzlmod/entry_point,examples/bzlmod/libs/my_lib,examples/bzlmod/other_module,examples/bzlmod/other_module/other_module/pkg,examples/bzlmod/runfiles,examples/bzlmod/tests,examples/bzlmod/tests/other_module,examples/bzlmod/whl_mods,examples/multi_python_versions/libs/my_lib,examples/multi_python_versions/requirements,examples/multi_python_versions/tests,examples/pip_install,examples/pip_parse,examples/pip_parse_vendored,examples/pip_repository_annotations,examples/py_proto_library,tests/compile_pip_requirements,tests/compile_pip_requirements_test_from_external_workspace,tests/ignore_root_user_error,tests/pip_repository_entry_points
8
9test --test_output=errors
10
11# Do NOT implicitly create empty __init__.py files in the runfiles tree.
12# By default, these are created in every directory containing Python source code
13# or shared libraries, and every parent directory of those directories,
14# excluding the repo root directory. With this flag set, we are responsible for
15# creating (possibly empty) __init__.py files and adding them to the srcs of
16# Python targets as required.
17build --incompatible_default_to_explicit_init_py
18
19# Windows makes use of runfiles for some rules
20build --enable_runfiles
21startup --windows_enable_symlinks
22