1# Copyright 2024 The Bazel Authors. All rights reserved. 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14"""Module extension for internal dev_dependency=True setup.""" 15 16load("@bazel_ci_rules//:rbe_repo.bzl", "rbe_preconfig") 17load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file") 18 19def _internal_dev_deps_impl(mctx): 20 _ = mctx # @unused 21 22 # This wheel is purely here to validate the wheel extraction code. It's not 23 # intended for anything else. 24 http_file( 25 name = "wheel_for_testing", 26 downloaded_file_path = "numpy-1.25.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", 27 sha256 = "0d60fbae8e0019865fc4784745814cff1c421df5afee233db6d88ab4f14655a2", 28 urls = [ 29 "https://files.pythonhosted.org/packages/50/67/3e966d99a07d60a21a21d7ec016e9e4c2642a86fea251ec68677daf71d4d/numpy-1.25.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", 30 ], 31 ) 32 33 # Creates a default toolchain config for RBE. 34 # Use this as is if you are using the rbe_ubuntu16_04 container, 35 # otherwise refer to RBE docs. 36 rbe_preconfig( 37 name = "buildkite_config", 38 toolchain = "ubuntu1804-bazel-java11", 39 ) 40 41internal_dev_deps = module_extension( 42 implementation = _internal_dev_deps_impl, 43 doc = "This extension creates internal rules_python dev dependencies.", 44) 45