blob: ec70c1bf86f5181e61469a3255f47ce5057d90a8 [file] [log] [blame]
# Copyright 2019 The Bazel Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Core rules for building Python projects."""
load("@bazel_tools//tools/python:srcs_version.bzl", _find_requirements = "find_requirements")
load(
"//python/private:reexports.bzl",
"internal_PyInfo",
"internal_PyRuntimeInfo",
_py_binary = "py_binary",
_py_library = "py_library",
_py_runtime = "py_runtime",
_py_runtime_pair = "py_runtime_pair",
_py_test = "py_test",
)
load(":current_py_toolchain.bzl", _current_py_toolchain = "current_py_toolchain")
load(":py_import.bzl", _py_import = "py_import")
# Exports of native-defined providers.
PyInfo = internal_PyInfo
PyRuntimeInfo = internal_PyRuntimeInfo
current_py_toolchain = _current_py_toolchain
py_import = _py_import
# Re-exports of Starlark-defined symbols in @bazel_tools//tools/python.
py_runtime_pair = _py_runtime_pair
find_requirements = _find_requirements
py_library = _py_library
py_binary = _py_binary
py_test = _py_test
py_runtime = _py_runtime