Skip to content

Commit ce4d69f

Browse files
authored
Merge pull request #140 from abitrolly/fix-install
Install grumpy-tools before building grumpy-runtime
2 parents 77b7bfb + 9d26049 commit ce4d69f

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

grumpy-runtime-src/MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ global-exclude *.egg-info/*
88
global-exclude *__pycache__*
99

1010
recursive-exclude grumpy-tools-src *.go
11+
12+
include pyproject.toml

grumpy-runtime-src/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,12 @@ PY_DIR := build/lib/python2.7/site-packages
5050
PY_INSTALL_DIR := $(shell $(PYTHON) -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
5151

5252
export GOPATH := $(ROOT_DIR)/build
53-
export PYTHONPATH := $(ROOT_DIR)/$(PY_DIR)
5453
export PATH := $(ROOT_DIR)/build/bin:$(PATH)
54+
ifndef PYTHONPATH
55+
export PYTHONPATH := $(ROOT_DIR)/$(PY_DIR)
56+
else
57+
export PYTHONPATH := $(PYTHONPATH):$(ROOT_DIR)/$(PY_DIR)
58+
endif
5559

5660
GOPATH_PY_ROOT := $(GOPATH)/src/__python__
5761

grumpy-runtime-src/pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[build-system]
2+
requires = ["setuptools", "wheel", "grumpy-tools>0.2.2"]

0 commit comments

Comments
 (0)