Skip to content

Commit

Permalink
remove conflicting numpy from python-libs folder before zipping
Browse files Browse the repository at this point in the history
  • Loading branch information
hpgrahsl committed Nov 8, 2024
1 parent e566ff9 commit 83c562d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pyflink-vector-embeddings/pyflink-app/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ $(TARGET):

$(VENV): requirements.txt
$(PY) -m venv $(VENV)
# NOTE: Decodable infra for custom pipelines runs on ARM cpus by default hence the platform specifier
# NOTE: Decodable infra for custom pipelines runs on ARM CPUs by default hence the platform specifier
$(BIN)/pip install -r requirements.txt --platform manylinux2014_aarch64 --only-binary=:all: --target=${PYTHON_LIBS}
touch $(VENV)

Expand All @@ -37,7 +37,8 @@ $(LIBS)/flink-python-1.19.1.jar: | $(TARGET)

$(TARGET)/pyflink-job.zip: main.py $(LIBS)/mysql-connector-java-8.0.30.jar $(LIBS)/flink-sql-connector-mysql-cdc-3.1.0.jar $(LIBS)/flink-sql-connector-mongodb-1.2.0-1.19.jar $(LIBS)/flink-python-1.19.1.jar $(VENV)
cp main.py $(TARGET)
cd $(TARGET) && zip -r pyflink-job.zip main.py libs python-libs
# NOTE: workaround due to conflicting numpy dependency -> explicitly remove the corresponding packages from the python-libs folder
cd $(TARGET) && rm -rf python-libs/numpy* && zip -r pyflink-job.zip main.py libs python-libs

clean:
@rm -rf $(TARGET)
Expand Down

0 comments on commit 83c562d

Please sign in to comment.