From: Zooko O'Whielacronx Date: Tue, 20 Nov 2007 07:07:44 +0000 (-0700) Subject: setup: make dependency failures more helpful (thanks to Priyanka) X-Git-Url: https://git.rkrishnan.org/somewhere?a=commitdiff_plain;h=2eeac5cff8baf05db5976d9a77bdeb43291c656f;p=tahoe-lafs%2Ftahoe-lafs.git setup: make dependency failures more helpful (thanks to Priyanka) --- diff --git a/Makefile b/Makefile index 8105c623..0b76fefc 100644 --- a/Makefile +++ b/Makefile @@ -100,25 +100,46 @@ endif signal-error-deps: + @echo + @echo @echo "ERROR: Not all of Tahoe's dependencies are in place. Please \ see the README for help on installing dependencies." + @echo + @echo exit 1 signal-error-twisted-dep: + @echo + @echo @echo "ERROR: Before running \"make build-deps\" you have to ensure that \ Twisted is installed (including its zope.interface dependency). Twisted and \ zope.interface are required for the automatic installation of certain other \ libraries that Tahoe requires). Please see the README for details." + @echo + @echo exit 1 signal-error-pywin32-dep: + @echo + @echo @echo "ERROR: the pywin32 dependency is not in place. Please see the README \ for help on installing dependencies." + @echo + @echo exit 1 -check-deps: check-twisted-dep $(CHECK_PYWIN32_DEP) +signal-error-pyopenssl-dep: + @echo + @echo + @echo "ERROR: the pyOpenSSL dependency is not in place (note that pyOpenSSL required \ +OpenSSL). Please see the README for help on installing dependencies." + @echo + @echo + exit 1 + +check-deps: check-twisted-dep $(CHECK_PYWIN32_DEP) check-pyopenssl-dep $(PP) \ - $(PYTHON) -c 'import allmydata, zfec, foolscap, simplejson, nevow, OpenSSL, pycryptopp' || $(MAKE) signal-error-deps + $(PYTHON) -c 'import allmydata, zfec, foolscap, simplejson, nevow, pycryptopp' || $(MAKE) signal-error-deps check-twisted-dep: $(PYTHON) -c 'import twisted, zope.interface' || $(MAKE) signal-error-twisted-dep @@ -126,6 +147,9 @@ check-twisted-dep: check-pywin32-dep: $(PYTHON) -c 'import win32process' || $(MAKE) signal-error-pywin32-dep +check-pyopenssl-dep: + $(PYTHON) -c 'import OpenSSL' || $(MAKE) signal-error-pyopenssl-dep + .checked-deps: $(MAKE) check-deps touch .checked-deps