# We put a "fakedependency-0.9.9.egg" package and a
# "fakedependency-1.0.0.tar.gz" into a directory, but the former is
# booby-trapped so it will raise an exception when you try to import it.
#
# Then we run
#
# python setup.py --fakedependency -v test -s buildtest.test_build_with_fake_dist
#
# which requires "fakedependency >= 1.0.0", imports fakedependency
# and passes if fakedependency.__version__ == '1.0.0'.
#
# The goal is to turn red if the build system tries to use the
# source dist when it could have used the binary dist.
#
# Note that for this test to make sense, Tahoe-LAFS needs to be asking
# for a version of fakedependency which can be satisfied by 1.0.0.
# The --fakedependency option to setup.py arranges that.
fake_distdir='tahoe-deps'
fake_distname="fakedependency"
fake_sdistversion="1.0.0"
fake_bdistversion="0.9.9"
bdist_init="raise Exception('Aha I caught you trying to import me. I am a fakedependency 0.9.9 package and you should not be satisfied with something < 1.0.0.')"