setup: check for the pywin32 dep only on Windows

This commit is contained in:
Zooko O'Whielacronx 2007-09-21 14:11:16 -07:00
parent 6fbc51568f
commit 7e1b67cf2e

View File

@ -39,11 +39,13 @@ ifeq ($(PLAT),win32)
SUPPORT = $(shell cygpath -w $(shell pwd))\support SUPPORT = $(shell cygpath -w $(shell pwd))\support
SUPPORTLIB := $(SUPPORT)\Lib\site-packages SUPPORTLIB := $(SUPPORT)\Lib\site-packages
SRCPATH := $(shell cygpath -w $(shell pwd))\src SRCPATH := $(shell cygpath -w $(shell pwd))\src
CHECK_PYWIN32_DEP := check-pywin32-dep
else else
PYVER=$(shell $(PYTHON) misc/pyver.py) PYVER=$(shell $(PYTHON) misc/pyver.py)
SUPPORT = $(shell pwd)/support SUPPORT = $(shell pwd)/support
SUPPORTLIB = $(SUPPORT)/lib/$(PYVER)/site-packages SUPPORTLIB = $(SUPPORT)/lib/$(PYVER)/site-packages
SRCPATH := $(shell pwd)/src SRCPATH := $(shell pwd)/src
CHECK_PYWIN32_DEP :=
endif endif
ifeq ($(PLAT),cygwin) ifeq ($(PLAT),cygwin)
@ -103,7 +105,7 @@ endif
# TESTING # TESTING
.PHONY: check-deps check-twisted-dep check-pywin32-dep signal-error-deps, signal-error-twisted-dep, signal-error-pywin32-dep, test test-figleaf figleaf-output .PHONY: check-deps check-twisted-dep $(CHECK_PYWIN32_DEP) signal-error-deps, signal-error-twisted-dep, signal-error-pywin32-dep, test test-figleaf figleaf-output
signal-error-deps: signal-error-deps:
@ -123,7 +125,7 @@ signal-error-pywin32-dep:
for help on installing dependencies." for help on installing dependencies."
exit 1 exit 1
check-deps: check-twisted-dep check-pywin32-dep check-deps: check-twisted-dep $(CHECK_PYWIN32_DEP)
$(PP) \ $(PP) \
$(PYTHON) -c 'import allmydata, zfec, foolscap, simplejson, nevow, OpenSSL' || $(MAKE) signal-error-deps $(PYTHON) -c 'import allmydata, zfec, foolscap, simplejson, nevow, OpenSSL' || $(MAKE) signal-error-deps