]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
setup: use setuptools (if it is present) at run-time to give a specific error message...
authorZooko O'Whielacronx <zooko@zooko.com>
Wed, 23 Jan 2008 00:42:54 +0000 (17:42 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Wed, 23 Jan 2008 00:42:54 +0000 (17:42 -0700)
Makefile
setup.py
src/allmydata/__init__.py

index 7725ec1055b081b8a9d13d0610ee3e46b30339f2..6efdd971b49f8b29e96b4b95f76f72b15128b685 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -32,8 +32,6 @@ else
  CHECK_PYWIN32_DEP := 
 endif
 
-TRIALCMD = $(shell PYTHONPATH="$(PYTHONPATH)$(PATHSEP)$(SRCPATH)" $(PYTHON) misc/find_trial.py)
-
 ifeq ($(PLAT),cygwin)
 REACTOR = poll
 endif
@@ -44,8 +42,6 @@ else
        REACTOROPT := 
 endif
 
-TRIAL=PYTHONUNBUFFERED=1 $(TRIALCMD) --rterrors $(REACTOROPT)
-
 # The following target is here because I don't know how to tell the buildmaster
 # to start instructing his slaves to "build" instead of instructing them to
 # "build-deps".  --Z
@@ -61,6 +57,9 @@ ifneq ($(PYTHONPATH),)
 endif
 PP=PYTHONPATH="$(SRCPATH)$(PATHSEP)$(PYTHONPATH)$(PATHSEP)$(EGGSPATH)"
 
+TRIALCMD = $(shell $(PP) $(PYTHON) misc/find_trial.py)
+TRIAL=PYTHONUNBUFFERED=1 $(TRIALCMD) --rterrors $(REACTOROPT)
+
 .PHONY: make-version build
 
 # The 'darcsver' setup.py command comes in the 'darcsver' package:
index d995a9f697261a5e10490511654f84129a138510..8ede281073f48a2b674f8bffdffe8214dadc4dee 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -101,7 +101,7 @@ setup_requires.append('darcsver >= 1.0.0')
 # that this is itself a source distribution.
 # http://pypi.python.org/pypi/setuptools_darcs
 if not os.path.exists('PKG-INFO'):
-    setup_requires.append('setuptools_darcs >= 1.0.5')
+    setup_requires.append('setuptools_darcs >= 1.1.0')
 
 install_requires=["zfec >= 1.3.0",
                   "foolscap >= 0.2.3",
index e40a304355097e5a9e4caeaa9db2588c7510abce..2d6e7340af9316f9481406660f7daf3a4d14e3a1 100644 (file)
@@ -19,6 +19,19 @@ except ImportError:
 hush_pyflakes = __version__
 del hush_pyflakes
 
+try:
+    import pkg_resources
+except ImportError:
+    # nevermind
+    pass
+else:
+    pkg_resources.require("zfec >= 1.3.0")
+    pkg_resources.require("foolscap >= 0.2.3")
+    pkg_resources.require("simplejson >= 1.7.3")
+    pkg_resources.require("pycryptopp >= 0.2.9")
+    pkg_resources.require("nevow >= 0.6.0")
+    pkg_resources.require("zope.interface >= 3.1.0")
+
 def get_package_versions():
     import OpenSSL, allmydata, foolscap, nevow, pycryptopp, simplejson, twisted, zfec
     setuptools_version = "unavailable"