Skip to content

Commit

Permalink
Preserve PYTHONPATH in Makefile
Browse files Browse the repository at this point in the history
Necessary to locate `grumpy-tools` when building wheel for runtime
during `pip install`.
  • Loading branch information
abitrolly committed Oct 10, 2019
1 parent 9693e46 commit 9d26049
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion grumpy-runtime-src/Makefile
Original file line number Diff line number Diff line change
@@ -50,8 +50,12 @@ PY_DIR := build/lib/python2.7/site-packages
PY_INSTALL_DIR := $(shell $(PYTHON) -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")

export GOPATH := $(ROOT_DIR)/build
export PYTHONPATH := $(ROOT_DIR)/$(PY_DIR)
export PATH := $(ROOT_DIR)/build/bin:$(PATH)
ifndef PYTHONPATH
export PYTHONPATH := $(ROOT_DIR)/$(PY_DIR)
else
export PYTHONPATH := $(PYTHONPATH):$(ROOT_DIR)/$(PY_DIR)
endif

GOPATH_PY_ROOT := $(GOPATH)/src/__python__

0 comments on commit 9d26049

Please sign in to comment.