protos = glob(["*.proto"])

genrule(
	name = "protoc-py",
	srcs = protos,
	outs = [f[:-len(".proto")]+"_pb2.py" for f in protos],
	tools = ["//tools:protoc"],
	cmd = """
PROTOC=$(location //tools:protoc)
$$PROTOC --proto_path . --python_out $(@D)/.. $(SRCS)
""",
)

#py_library(
#	name = "profile_pb2",
#	srcs = ["profile_pb2.py"],
#	deps = ["@protobuf//:protobuf_python"],
#)
