@@ -918,19 +918,6 @@ exports_files(
918
918
glob (["lib/Bindings/Python/**/*.cpp" ]),
919
919
)
920
920
921
- # In the targets related to Python bindings, the projects @pybind11 and
922
- # @local_config_python are defined by @pybind11_bazel. The latter contains
923
- # python headers, and can be configured in an out-of-tree bazel project via
924
- #
925
- # load("@pybind11_bazel//:python_configure.bzl", "python_configure")
926
- # python_configure(name = "local_config_python")
927
- #
928
- # For more up-to-date instructions, see
929
- # https://github.com/pybind/pybind11_bazel
930
- #
931
- # Some out-of-tree projects alias @python_runtime//:headers to
932
- # @local_config_python//:python_headers.
933
-
934
921
filegroup (
935
922
name = "MLIRBindingsPythonHeaderFiles" ,
936
923
srcs = glob ([
@@ -946,16 +933,12 @@ cc_library(
946
933
"include" ,
947
934
"lib/Bindings/Python" ,
948
935
],
949
- tags = [
950
- "manual" , # External dependency
951
- "nobuildkite" , # TODO(gcmn): Add support for this target
952
- ],
953
936
textual_hdrs = [":MLIRBindingsPythonHeaderFiles" ],
954
937
deps = [
955
938
":CAPIIRHeaders" ,
956
939
":CAPITransformsHeaders" ,
957
- "@local_config_python//:python_headers" ,
958
940
"@pybind11" ,
941
+ "@rules_python//python/cc:current_py_cc_headers" ,
959
942
],
960
943
)
961
944
@@ -965,16 +948,12 @@ cc_library(
965
948
"include" ,
966
949
"lib/Bindings/Python" ,
967
950
],
968
- tags = [
969
- "manual" , # External dependency
970
- "nobuildkite" , # TODO(gcmn): Add support for this target
971
- ],
972
951
textual_hdrs = [":MLIRBindingsPythonHeaderFiles" ],
973
952
deps = [
974
953
":CAPIIR" ,
975
954
":CAPITransforms" ,
976
- "@local_config_python//:python_headers" ,
977
955
"@pybind11" ,
956
+ "@rules_python//python/cc:current_py_cc_headers" ,
978
957
],
979
958
)
980
959
@@ -1008,10 +987,6 @@ cc_library(
1008
987
srcs = [":MLIRBindingsPythonSourceFiles" ],
1009
988
copts = PYBIND11_COPTS ,
1010
989
features = PYBIND11_FEATURES ,
1011
- tags = [
1012
- "manual" , # External dependency
1013
- "nobuildkite" , # TODO(gcmn): Add support for this target
1014
- ],
1015
990
deps = [
1016
991
":CAPIAsync" ,
1017
992
":CAPIDebug" ,
@@ -1021,8 +996,8 @@ cc_library(
1021
996
":Support" ,
1022
997
":config" ,
1023
998
"//llvm:Support" ,
1024
- "@local_config_python//:python_headers" ,
1025
999
"@pybind11" ,
1000
+ "@rules_python//python/cc:current_py_cc_headers" ,
1026
1001
],
1027
1002
)
1028
1003
@@ -1031,10 +1006,6 @@ cc_library(
1031
1006
srcs = [":MLIRBindingsPythonSourceFiles" ],
1032
1007
copts = PYBIND11_COPTS ,
1033
1008
features = PYBIND11_FEATURES ,
1034
- tags = [
1035
- "manual" , # External dependency
1036
- "nobuildkite" , # TODO(gcmn): Add support for this target
1037
- ],
1038
1009
deps = [
1039
1010
":CAPIAsyncHeaders" ,
1040
1011
":CAPIDebugHeaders" ,
@@ -1043,19 +1014,15 @@ cc_library(
1043
1014
":Support" ,
1044
1015
":config" ,
1045
1016
"//llvm:Support" ,
1046
- "@local_config_python//:python_headers" ,
1047
1017
"@pybind11" ,
1018
+ "@rules_python//python/cc:current_py_cc_headers" ,
1048
1019
],
1049
1020
)
1050
1021
1051
1022
# Target that bundles together the CAPI objects needed for
1052
1023
# MLIRBindingsPythonCoreNoCAPI.
1053
1024
cc_library (
1054
1025
name = "MLIRBindingsPythonCAPIObjects" ,
1055
- tags = [
1056
- "manual" , # External dependency
1057
- "nobuildkite" , # TODO(gcmn): Add support for this target
1058
- ],
1059
1026
deps = [
1060
1027
":CAPIAsyncObjects" ,
1061
1028
":CAPIDebugObjects" ,
@@ -1074,10 +1041,6 @@ cc_binary(
1074
1041
features = PYBIND11_FEATURES ,
1075
1042
linkshared = 1 ,
1076
1043
linkstatic = 0 ,
1077
- tags = [
1078
- "manual" , # External dependency
1079
- "nobuildkite" , # TODO(gcmn): Add support for this target
1080
- ],
1081
1044
deps = [
1082
1045
":MLIRBindingsPythonCore" ,
1083
1046
":MLIRBindingsPythonHeadersAndDeps" ,
@@ -1091,10 +1054,6 @@ cc_binary(
1091
1054
features = PYBIND11_FEATURES ,
1092
1055
linkshared = 1 ,
1093
1056
linkstatic = 0 ,
1094
- tags = [
1095
- "manual" , # External dependency
1096
- "nobuildkite" , # TODO(gcmn): Add support for this target
1097
- ],
1098
1057
deps = [
1099
1058
":CAPIIR" ,
1100
1059
":CAPILinalg" ,
@@ -1109,10 +1068,6 @@ cc_binary(
1109
1068
features = PYBIND11_FEATURES ,
1110
1069
linkshared = 1 ,
1111
1070
linkstatic = 0 ,
1112
- tags = [
1113
- "manual" , # External dependency
1114
- "nobuildkite" ,
1115
- ],
1116
1071
deps = [
1117
1072
":CAPIIR" ,
1118
1073
":CAPILLVM" ,
@@ -1128,10 +1083,6 @@ cc_binary(
1128
1083
features = PYBIND11_FEATURES ,
1129
1084
linkshared = 1 ,
1130
1085
linkstatic = 0 ,
1131
- tags = [
1132
- "manual" , # External dependency
1133
- "nobuildkite" , # TODO(gcmn): Add support for this target
1134
- ],
1135
1086
deps = [
1136
1087
":CAPIIR" ,
1137
1088
":CAPIQuant" ,
@@ -1147,10 +1098,6 @@ cc_binary(
1147
1098
features = PYBIND11_FEATURES ,
1148
1099
linkshared = 1 ,
1149
1100
linkstatic = 0 ,
1150
- tags = [
1151
- "manual" , # External dependency
1152
- "nobuildkite" , # TODO(gcmn): Add support for this target
1153
- ],
1154
1101
deps = [
1155
1102
":CAPIIR" ,
1156
1103
":CAPISparseTensor" ,
@@ -1167,15 +1114,11 @@ cc_binary(
1167
1114
features = PYBIND11_FEATURES ,
1168
1115
linkshared = 1 ,
1169
1116
linkstatic = 0 ,
1170
- tags = [
1171
- "manual" , # External dependency
1172
- "nobuildkite" , # TODO(gcmn): Add support for this target
1173
- ],
1174
1117
deps = [
1175
1118
":CAPIExecutionEngine" ,
1176
1119
":MLIRBindingsPythonHeadersAndDeps" ,
1177
- "@local_config_python//:python_headers" ,
1178
1120
"@pybind11" ,
1121
+ "@rules_python//python/cc:current_py_cc_headers" ,
1179
1122
],
1180
1123
)
1181
1124
@@ -1187,15 +1130,11 @@ cc_binary(
1187
1130
features = PYBIND11_FEATURES ,
1188
1131
linkshared = 1 ,
1189
1132
linkstatic = 0 ,
1190
- tags = [
1191
- "manual" , # External dependency
1192
- "nobuildkite" , # TODO(gcmn): Add support for this target
1193
- ],
1194
1133
deps = [
1195
1134
":CAPILinalg" ,
1196
1135
":MLIRBindingsPythonHeadersAndDeps" ,
1197
- "@local_config_python//:python_headers" ,
1198
1136
"@pybind11" ,
1137
+ "@rules_python//python/cc:current_py_cc_headers" ,
1199
1138
],
1200
1139
)
1201
1140
0 commit comments