mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
15 lines
478 B
Python
15 lines
478 B
Python
load("@bazel_skylib//rules:copy_file.bzl", "copy_file")
|
|
load("@py_deps//:requirements.bzl", "requirement")
|
|
|
|
def pip_binary(name, pkg = None):
|
|
"Expose a binary from pip as an executable for linting. Does not work on Windows."
|
|
|
|
if not pkg:
|
|
pkg = name
|
|
|
|
native.alias(
|
|
name = name,
|
|
actual = requirement(pkg).replace(":pkg", ":rules_python_wheel_entry_point_" + name),
|
|
visibility = ["//visibility:public"],
|
|
tags = ["manual"],
|
|
)
|