From: Zooko O'Whielacronx Date: Fri, 18 Apr 2008 05:07:52 +0000 (-0700) Subject: setup: a tiny tweak to setup to avoid requiring darcsver package if the user isn... X-Git-Tag: allmydata-tahoe-1.1.0~224 X-Git-Url: https://git.rkrishnan.org/pf/content/de.html?a=commitdiff_plain;h=229e29e81beebdd336fabbd9ad102ee24e32c428;p=tahoe-lafs%2Ftahoe-lafs.git setup: a tiny tweak to setup to avoid requiring darcsver package if the user isn't invoking "./setup.py darcsver" The real reason for this patch is to test our patch management infrastructure. --- diff --git a/setup.py b/setup.py index b848b6d0..0dce180a 100644 --- a/setup.py +++ b/setup.py @@ -109,7 +109,8 @@ setup_requires.append('twisted >= 2.4.0') # for trial, and because foolscap <= 0 # version stamp in src/allmydata/_version.py, with a version number derived from # darcs history. # http://pypi.python.org/pypi/darcsver -setup_requires.append('darcsver >= 1.1.2') +if 'darcsver' in sys.argv[1:]: + setup_requires.append('darcsver >= 1.1.2') # setuptools_darcs is required to produce complete distributions (such as with # "sdist" or "bdist_egg"), unless there is a PKG-INFO file present which shows