mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-21 10:01:54 +00:00
setup: make dependency failures more helpful (thanks to Priyanka)
This commit is contained in:
parent
8ba10d0155
commit
2eeac5cff8
28
Makefile
28
Makefile
@ -100,25 +100,46 @@ endif
|
|||||||
|
|
||||||
|
|
||||||
signal-error-deps:
|
signal-error-deps:
|
||||||
|
@echo
|
||||||
|
@echo
|
||||||
@echo "ERROR: Not all of Tahoe's dependencies are in place. Please \
|
@echo "ERROR: Not all of Tahoe's dependencies are in place. Please \
|
||||||
see the README for help on installing dependencies."
|
see the README for help on installing dependencies."
|
||||||
|
@echo
|
||||||
|
@echo
|
||||||
exit 1
|
exit 1
|
||||||
|
|
||||||
signal-error-twisted-dep:
|
signal-error-twisted-dep:
|
||||||
|
@echo
|
||||||
|
@echo
|
||||||
@echo "ERROR: Before running \"make build-deps\" you have to ensure that \
|
@echo "ERROR: Before running \"make build-deps\" you have to ensure that \
|
||||||
Twisted is installed (including its zope.interface dependency). Twisted and \
|
Twisted is installed (including its zope.interface dependency). Twisted and \
|
||||||
zope.interface are required for the automatic installation of certain other \
|
zope.interface are required for the automatic installation of certain other \
|
||||||
libraries that Tahoe requires). Please see the README for details."
|
libraries that Tahoe requires). Please see the README for details."
|
||||||
|
@echo
|
||||||
|
@echo
|
||||||
exit 1
|
exit 1
|
||||||
|
|
||||||
signal-error-pywin32-dep:
|
signal-error-pywin32-dep:
|
||||||
|
@echo
|
||||||
|
@echo
|
||||||
@echo "ERROR: the pywin32 dependency is not in place. Please see the README \
|
@echo "ERROR: the pywin32 dependency is not in place. Please see the README \
|
||||||
for help on installing dependencies."
|
for help on installing dependencies."
|
||||||
|
@echo
|
||||||
|
@echo
|
||||||
exit 1
|
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) \
|
$(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:
|
check-twisted-dep:
|
||||||
$(PYTHON) -c 'import twisted, zope.interface' || $(MAKE) signal-error-twisted-dep
|
$(PYTHON) -c 'import twisted, zope.interface' || $(MAKE) signal-error-twisted-dep
|
||||||
@ -126,6 +147,9 @@ check-twisted-dep:
|
|||||||
check-pywin32-dep:
|
check-pywin32-dep:
|
||||||
$(PYTHON) -c 'import win32process' || $(MAKE) signal-error-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:
|
.checked-deps:
|
||||||
$(MAKE) check-deps
|
$(MAKE) check-deps
|
||||||
touch .checked-deps
|
touch .checked-deps
|
||||||
|
Loading…
x
Reference in New Issue
Block a user