Skip to content

Commit acfb709

Browse files
committed
Allow for custom py_binary
1 parent 394fa82 commit acfb709

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

venv.bzl.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
load("@rules_python//python:defs.bzl", "py_binary")
15+
load("@rules_python//python:defs.bzl", _py_binary = "py_binary")
1616

1717
PYTHON_TOOLCHAIN_TYPE = "@bazel_tools//tools/python:toolchain_type"
1818

@@ -61,7 +61,7 @@ _py_venv_deps = rule(
6161
toolchains = [PYTHON_TOOLCHAIN_TYPE],
6262
)
6363

64-
def py_venv(name, deps = None, extra_pip_commands = None, always_link = False, venv_location = None, **kwargs):
64+
def py_venv(name, deps = None, extra_pip_commands = None, always_link = False, venv_location = None, py_binary = _py_binary, **kwargs):
6565
deps = deps or []
6666
extra_pip_commands = extra_pip_commands or []
6767

0 commit comments

Comments
 (0)