From 18880b47c7dac14744dfe04ed9cc7eeaaa521d80 Mon Sep 17 00:00:00 2001 From: Tim Trippel Date: Mon, 11 Mar 2024 22:24:03 -0700 Subject: [PATCH] [bazel] fix python package error on debian systems This is a port of https://github.com/lowRISC/opentitan/pull/21955 to this repo. Signed-off-by: Tim Trippel --- rules/pip.bzl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rules/pip.bzl b/rules/pip.bzl index b73ced4..ae75bce 100644 --- a/rules/pip.bzl +++ b/rules/pip.bzl @@ -37,6 +37,7 @@ def _pip_wheel_impl(rctx): "-m", "pip", "install", + "--user", "wheel", ] rctx.report_progress("Installing the Python wheel package") @@ -54,6 +55,7 @@ def _pip_wheel_impl(rctx): "-m", "pip", "wheel", + "--use-pep517", "-r", rctx.path(rctx.attr.requirements), "-w",