2008-01-23 00:35:38 +00:00
|
|
|
install_requires=["zfec >= 1.1.0",
|
2008-01-23 00:24:33 +00:00
|
|
|
"foolscap >= 0.2.3",
|
2008-01-23 16:54:20 +00:00
|
|
|
"simplejson >= 1.7.1",
|
2008-01-23 00:24:33 +00:00
|
|
|
"pycryptopp >= 0.2.9",
|
|
|
|
"nevow >= 0.6.0",
|
|
|
|
"zope.interface >= 3.1.0",
|
|
|
|
]
|
|
|
|
|
|
|
|
def require_auto_deps():
|
|
|
|
try:
|
|
|
|
import pkg_resources
|
|
|
|
except:
|
|
|
|
# Then we can't assert that the versions of these packages are the right
|
|
|
|
# versions, but we can still try to use them anyway...
|
|
|
|
pass
|
|
|
|
else:
|
|
|
|
for requirement in install_requires:
|
|
|
|
pkg_resources.require(requirement)
|
|
|
|
for requirement in install_requires:
|
|
|
|
name, cmpop, verstr = requirement.split()
|
|
|
|
__import__(name)
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
require_auto_deps()
|