mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-26 22:09:54 +00:00
setup: when testing, set the __requires__ as precisely as possible even if the version of this particular build of Tahoe-LAFS is not yet known (addresses test failure ref #1190, #1233)
This commit is contained in:
parent
bc396b53ab
commit
50f8c37a2b
8
setup.py
8
setup.py
@ -63,8 +63,12 @@ adglobals = {}
|
|||||||
execfile('src/allmydata/_auto_deps.py', adglobals)
|
execfile('src/allmydata/_auto_deps.py', adglobals)
|
||||||
install_requires = adglobals['install_requires']
|
install_requires = adglobals['install_requires']
|
||||||
|
|
||||||
if ('trial' in sys.argv or 'test' in sys.argv) and version is not None:
|
__requires__ = install_requires[:]
|
||||||
__requires__ = [APPNAME + '==' + version] + install_requires
|
if 'trial' in sys.argv or 'test' in sys.argv:
|
||||||
|
if version is not None:
|
||||||
|
__requires__.append(APPNAME + '==' + version)
|
||||||
|
else:
|
||||||
|
__requires__.append(APPNAME)
|
||||||
|
|
||||||
egg = os.path.realpath(glob.glob('setuptools-*.egg')[0])
|
egg = os.path.realpath(glob.glob('setuptools-*.egg')[0])
|
||||||
sys.path.insert(0, egg)
|
sys.path.insert(0, egg)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user