﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	launchpad_bug
257	can't build without darcs installed	zooko	warner	"
Seb discovered that ""make"" fails if there is no darcs:

{{{
make make-version
python ./setup.py darcsver
darcsver is <module 'darcsver' from '/Users/wonwinmcbrootles/playground/allmydata/tahoe/trunk/darcsver-1.0.0-py2.5.egg/darcsver/__init__.pyc'>
running darcsver
error: No such file or directory
make[1]: *** [make-version] Error 1
make: *** [build] Error 2
}}}

We could make ""make-version"" pass in the case that darcs isn't present, but this spurred me to realize that we could also do something else: put the following into setup.py:

{{{
if 'darcsver' in not sys.argv: # to avoid recursion in case of weird sys.argv
    for arg in sys.argv:
        for start in ['bdist', 'build', 'sdist', 'install', 'develop']:
            if cmdname.startswith(start):
                (cin, cout, cerr,)= os.popen3(""setup.py darcsver"")
                print cout.read()
}}}

This would be similar to what we already did in setup.py back when ""darcsver"" was a separate script instead of a setuptools plugin, but it would be better, in that it would execute ""darcsver"" only in the case that the setup.py command being executed is one of those which wants a fresh version number.

Anyway, I guess that isn't directly related to this failure to build.  The first thing to do is probably just configure the Makefile so that ""make-version"" failing doesn't cause builds to fail, if Brian agrees."	defect	closed	major	0.7.0	packaging	0.7.0	fixed			
