From f66f680f1a4496cc4d75843b0add381853f27849 Mon Sep 17 00:00:00 2001 From: Jakub Walczak Date: Thu, 1 Feb 2024 10:47:49 +0100 Subject: [PATCH] F OpenNebula/one#5823: Update the way Python bindings are built and installed Signed-off-by: Jakub Walczak --- src/oca/python/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/oca/python/Makefile b/src/oca/python/Makefile index ba6dd02237d..24c85d97621 100644 --- a/src/oca/python/Makefile +++ b/src/oca/python/Makefile @@ -15,6 +15,7 @@ # Use full path to ensure virtualenv compatibility PYTHON = $(shell which python3) +PIP = ${shell which pip3} GDS = $(shell which generateDS) PWD = $(shell pwd) @@ -40,10 +41,10 @@ clean: rm -rf build dist pyone/bindings *.egg-info doc dist: - ${PYTHON} setup.py sdist bdist_wheel + ${PIP} wheel --no-deps -w dist . install: - ${PYTHON} setup.py install ${root} + ${PIP} install --root-user-action=ignore ${PWD}/dist/*.whl doc: mkdir -p doc