Skip to content

Commit

Permalink
Set PYTHONPATH correctly in Makefile to ensure grpc_tools.protoc is f…
Browse files Browse the repository at this point in the history
…ound
  • Loading branch information
devin-ai-integration[bot] committed Jul 3, 2024
1 parent 25a0e78 commit 707f20f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 707f20f

Please sign in to comment.