@@ -9,8 +9,6 @@ load("@bazel_skylib//rules:build_test.bzl", "build_test")
99load ("@pip//:requirements.bzl" , "all_data_requirements" , "all_requirements" , "all_whl_requirements" , "requirement" )
1010load ("@python_3_9//:defs.bzl" , py_test_with_transition = "py_test" )
1111load ("@python_versions//3.10:defs.bzl" , compile_pip_requirements_3_10 = "compile_pip_requirements" )
12- load ("@rules_pkg//pkg:mappings.bzl" , "pkg_files" , "pkg_mklink" )
13- load ("@rules_pkg//pkg:tar.bzl" , "pkg_tar" )
1412load ("@rules_python//python:py_binary.bzl" , "py_binary" )
1513load ("@rules_python//python:py_library.bzl" , "py_library" )
1614load ("@rules_python//python:py_test.bzl" , "py_test" )
@@ -52,39 +50,6 @@ py_binary(
5250 ],
5351)
5452
55- pkg_tar (
56- name = "mytar" ,
57- srcs = [
58- ":myfiles" ,
59- ":myinter" ,
60- ],
61- allow_duplicates_with_different_content = True ,
62- ###
63- ##srcs = [":bzlmod"],
64- ##include_runfiles = True,
65- ##remap_paths = {
66- ## "bzlmod.runfiles/_main/_bzlmod.venv/bin/python3": "blah/whatever",
67- ##},
68- ##symlinks = {
69- ## "bzlmod.runfiles/_main/_bzlmod.venv/bin/python3": "../../interpreter",
70- ##},
71- )
72-
73- pkg_files (
74- name = "myfiles" ,
75- srcs = [":bzlmod" ],
76- excludes = [
77- "asdf" ,
78- ],
79- include_runfiles = True ,
80- )
81-
82- pkg_mklink (
83- name = "myinter" ,
84- link_name = "bzlmod.runfiles/_main/_bzlmod.venv/bin/python3" ,
85- target = "mytarget" ,
86- )
87-
8853# see https://bazel.build/reference/be/python#py_test
8954py_test (
9055 name = "test" ,
0 commit comments