Makefile: use absolute path to src/ in PP, since check-memory needs it (it chdirs then imports allmydata)

This commit is contained in:
Brian Warner 2007-09-14 20:17:43 -07:00
parent 32f25f33e3
commit 228a576a3f
1 changed files with 3 additions and 1 deletions

View File

@ -37,10 +37,12 @@ ifeq ($(PLAT),win32)
TRIALPATH := $(shell cygpath -w $(TRIALPATH))
SUPPORT = $(shell cygpath -w $(shell pwd))\support
SUPPORTLIB := $(SUPPORT)\Lib\site-packages
SRCPATH := $(shell cygpath -w $(shell pwd))\src
else
PYVER=$(shell $(PYTHON) misc/pyver.py)
SUPPORT = $(shell pwd)/support
SUPPORTLIB = $(SUPPORT)/lib/$(PYVER)/site-packages
SRCPATH := $(shell pwd)/src
endif
ifeq ($(PLAT),cygwin)
@ -65,7 +67,7 @@ EGGSPATH = $(shell $(PYTHON) misc/find-dep-eggs.py)
show-eggspath:
@echo $(EGGSPATH)
PP=PYTHONPATH="src$(PATHSEP)$(EGGSPATH)$(PATHSEP)$(PYTHONPATH)"
PP=PYTHONPATH="$(SRCPATH)$(PATHSEP)$(EGGSPATH)$(PATHSEP)$(PYTHONPATH)"
.PHONY: make-version build
make-version: