From 707f20fba2db086d937844198d9962afca5c7d45 Mon Sep 17 00:00:00 2001 From: "devin-ai-integration[bot]" <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Wed, 3 Jul 2024 22:26:11 +0000 Subject: [PATCH] Set PYTHONPATH correctly in Makefile to ensure grpc_tools.protoc is found --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f1fee4337a..ff3995bbd1 100644 --- a/Makefile +++ b/Makefile @@ -61,7 +61,7 @@ compile-protos-python: install-python: @echo "Before activation: PATH=$$PATH" - ( . venv/bin/activate && export PYTHONPATH=$$PWD/venv/lib/python3.10/site-packages && echo "After activation: PATH=$$PATH" && echo "PYTHONPATH: $$PYTHONPATH" && make install-protoc-dependencies && export PYTHONPATH=$$PWD/venv/lib/python3.10/site-packages && venv/bin/python -c "import grpc_tools.protoc; print(grpc_tools.protoc.__file__)" && export PYTHONPATH=$$PWD/venv/lib/python3.10/site-packages && venv/bin/python -m piptools sync sdk/python/requirements/py3.10-requirements.txt && export PYTHONPATH=$$PWD/venv/lib/python3.10/site-packages && venv/bin/python setup.py develop ) + ( . venv/bin/activate && export PYTHONPATH=$$PWD/venv/lib/python3.10/site-packages && echo "After activation: PATH=$$PATH" && echo "PYTHONPATH: $$PYTHONPATH" && make install-protoc-dependencies && venv/bin/python -c "import grpc_tools.protoc; print(grpc_tools.protoc.__file__)" && venv/bin/python -m piptools sync sdk/python/requirements/py3.10-requirements.txt && venv/bin/python setup.py develop ) lock-python-dependencies: pip-compile --system --no-strip-extras setup.py --output-file sdk/python/requirements/py$(PYTHON)-requirements.txt