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.
This commit is contained in:
Zooko O'Whielacronx 2008-04-17 22:07:52 -07:00
parent d7b82f73c5
commit 229e29e81b

View File

@ -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