Skip to content

Commit

Permalink
Use extra for spark
Browse files Browse the repository at this point in the history
Signed-off-by: Maroun Touma <touma@us.ibm.com>
  • Loading branch information
touma-I committed Oct 23, 2024
1 parent fdee6a7 commit 61fec0b
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .make.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ ifeq ($(USE_REPO_LIB_SRC), 1)
$(MAKE) PIP_TARGET=data-prep-toolkit[spark] .defaults.pip-uninstall; \
$(MAKE) PIP_TARGET=data-prep-toolkit .defaults.pip-uninstall; \
$(MAKE) PYTHON_PROJECT_BUILD_DIR=$(DPK_PYTHON_BUILD_DIR) .defaults.install-src-venv; \
$(MAKE) PYTHON_PROJECT_BUILD_DIR=$(DPK_SPARK_BUILD_DIR) .defaults.install-src-venv; \
$(MAKE) PYTHON_PROJECT_BUILD_DIR=$(DPK_SPARK_BUILD_DIR) PROJECT_BUILD_EXTRA=spark .defaults.install-src-venv; \
echo Installed source from Python and Spark processing libraries for `which $(PYTHON)`
else
@# Help: DO NOT install Python or Spark data processing library source into existing venv
Expand Down
10 changes: 5 additions & 5 deletions kfp/kfp_ray_components/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ FROM ${BASE_IMAGE}
COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

# Copy and install data processing libraries
ARG WHEEL_FILE_NAME

# Copy and install data processing libraries
# These are expected to be placed in the docker context before this is run (see the make image).
COPY --chown=ray:users data-processing-lib-python/ data-processing-lib-python/
RUN cd data-processing-lib-python && pip install --no-cache-dir -e .
COPY --chown=ray:users data-processing-lib-ray/ data-processing-lib-ray/
RUN cd data-processing-lib-ray && pip install --no-cache-dir -e .
COPY --chown=ray:users data-processing-dist data-processing-dist
RUN pip install data-processing-dist/${WHEEL_FILE_NAME}[ray]

COPY --chown=ray:users shared_workflow_support_lib shared_workflow_support_lib/
RUN cd shared_workflow_support_lib && pip install --no-cache-dir -e .
Expand Down
2 changes: 1 addition & 1 deletion kfp/kfp_support_lib/shared_workflow_support/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ authors = [
dependencies = [
"requests",
"kubernetes",
"data-prep-toolkit-ray==0.2.2.dev1",
"data-prep-toolkit[ray]==0.2.2.dev1",
]

[build-system]
Expand Down
2 changes: 1 addition & 1 deletion transforms/universal/doc_id/spark/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ authors = [
{ name = "Boris Lublinsky", email = "blublinsk@ibm.com" },
]
dependencies = [
"data-prep-toolkit-spark==0.2.2.dev1",
"data-prep-toolkit[spark]==0.2.2.dev1",
]

[build-system]
Expand Down
2 changes: 1 addition & 1 deletion transforms/universal/filter/spark/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ authors = [
{ name = "Boris Lublinsky", email = "blublinsk@ibm.com" },
]
dependencies = [
"data-prep-toolkit-spark==0.2.2.dev1",
"data-prep-toolkit[spark]==0.2.2.dev1",
]

[project.optional-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion transforms/universal/noop/spark/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ authors = [
]
dependencies = [
"dpk-noop-transform-python==0.2.2.dev1",
"data-prep-toolkit-spark==0.2.2.dev1",
"data-prep-toolkit[spark]==0.2.2.dev1",
]

[build-system]
Expand Down
2 changes: 1 addition & 1 deletion transforms/universal/profiler/spark/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ authors = [
]
dependencies = [
"dpk-profiler-transform-python==0.2.2.dev1",
"data-prep-toolkit-spark==0.2.2.dev1",
"data-prep-toolkit[spark]==0.2.2.dev1",
]

[build-system]
Expand Down
2 changes: 1 addition & 1 deletion transforms/universal/resize/spark/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ authors = [
]
dependencies = [
"dpk-resize-transform-python==0.2.2.dev1",
"data-prep-toolkit-spark==0.2.2.dev1",
"data-prep-toolkit[spark]==0.2.2.dev1",
]

[build-system]
Expand Down

0 comments on commit 61fec0b

Please sign in to comment.