xref: /aosp_15_r20/external/bazelbuild-rules_python/python/private/internal_deps.bzl (revision 60517a1edbc8ecf509223e9af94a7adec7d736b8)
1*60517a1eSAndroid Build Coastguard Worker#     http://www.apache.org/licenses/LICENSE-2.0
2*60517a1eSAndroid Build Coastguard Worker#
3*60517a1eSAndroid Build Coastguard Worker# Unless required by applicable law or agreed to in writing, software
4*60517a1eSAndroid Build Coastguard Worker# distributed under the License is distributed on an "AS IS" BASIS,
5*60517a1eSAndroid Build Coastguard Worker# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
6*60517a1eSAndroid Build Coastguard Worker# See the License for the specific language governing permissions and
7*60517a1eSAndroid Build Coastguard Worker# limitations under the License.
8*60517a1eSAndroid Build Coastguard Worker
9*60517a1eSAndroid Build Coastguard Worker"Python toolchain module extension for internal rule use"
10*60517a1eSAndroid Build Coastguard Worker
11*60517a1eSAndroid Build Coastguard Workerload("@bazel_skylib//lib:modules.bzl", "modules")
12*60517a1eSAndroid Build Coastguard Workerload("//python/private/pypi:deps.bzl", "pypi_deps")
13*60517a1eSAndroid Build Coastguard Workerload(":internal_config_repo.bzl", "internal_config_repo")
14*60517a1eSAndroid Build Coastguard Worker
15*60517a1eSAndroid Build Coastguard Workerdef _internal_deps():
16*60517a1eSAndroid Build Coastguard Worker    internal_config_repo(name = "rules_python_internal")
17*60517a1eSAndroid Build Coastguard Worker    pypi_deps()
18*60517a1eSAndroid Build Coastguard Worker
19*60517a1eSAndroid Build Coastguard Workerinternal_deps = modules.as_extension(
20*60517a1eSAndroid Build Coastguard Worker    _internal_deps,
21*60517a1eSAndroid Build Coastguard Worker    doc = "This extension registers internal rules_python dependencies.",
22*60517a1eSAndroid Build Coastguard Worker)
23