From 993d7865a562e95c5f91d1af7a1a81aba776d08b Mon Sep 17 00:00:00 2001 From: Maroun Touma Date: Wed, 23 Oct 2024 16:53:25 -0500 Subject: [PATCH] CHange kfp ray image to use wheel for library Signed-off-by: Maroun Touma --- kfp/kfp_ray_components/Makefile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/kfp/kfp_ray_components/Makefile b/kfp/kfp_ray_components/Makefile index 3ba8bfc00..b763067d3 100644 --- a/kfp/kfp_ray_components/Makefile +++ b/kfp/kfp_ray_components/Makefile @@ -17,17 +17,18 @@ else endif .PHONY: .lib-src-image -.lib-src-image:: - $(MAKE) .defaults.copy-lib LIB_PATH=$(DPK_PYTHON_LIB_DIR) LIB_NAME=data-processing-lib-python - $(MAKE) .defaults.copy-lib LIB_PATH=$(DPK_RAY_LIB_DIR) LIB_NAME=data-processing-lib-ray +.lib-src-image:: .default.build-lib-wheel + @$(eval LIB_WHEEL_FILE := $(shell find data-processing-dist/*.whl)) + $(eval LIB_WHEEL_FILE := $(shell basename $(LIB_WHEEL_FILE))) $(MAKE) .defaults.copy-lib LIB_PATH=$(REPOROOT)/kfp/kfp_support_lib/shared_workflow_support LIB_NAME=shared_workflow_support_lib $(MAKE) .defaults.copy-lib LIB_PATH=$(REPOROOT)/kfp/kfp_support_lib/$(WORKFLOW_SUPPORT_LIB) LIB_NAME=workflow_support_lib - $(MAKE) .defaults.image - rm -rf data-processing-lib-ray - rm -rf data-processing-lib-python + $(MAKE) WHEEL_FILE_NAME=$(LIB_WHEEL_FILE) .defaults.image + rm -rf data-processing-dist rm -rf shared_workflow_support_lib rm -rf workflow_support_lib + + .PHONY: build build: image