Skip to content

Commit

Permalink
Set PYTHONPATH in setup.py to include virtual environment's site-pack…
Browse files Browse the repository at this point in the history
…ages
  • Loading branch information
devin-ai-integration[bot] committed Jul 3, 2024
1 parent 7e74d8d commit ca0bc0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def _generate_python_protos(self, path: str):
print(f"sys.path: {sys.path}")
env = os.environ.copy()
env["PATH"] = f"/home/ubuntu/feast/venv/bin:" + env["PATH"]
env["PYTHONPATH"] = f"/home/ubuntu/feast/venv/lib/python3.10/site-packages"
env["PYTHONPATH"] = f"/home/ubuntu/feast/venv/lib/python3.10/site-packages:" + env.get("PYTHONPATH", "")
print(f"Subprocess PATH: {env['PATH']}")
print(f"Subprocess PYTHONPATH: {env['PYTHONPATH']}")
subprocess.check_call(
Expand Down

0 comments on commit ca0bc0d

Please sign in to comment.