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