mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-11 07:23:04 +00:00
589c8d158a
zooko recently added a runtime check, via setuptools, that specific versions of various packages were reported as available through setuptools at runtime. however exe and app builds run with collected egg contents, not linked against entire eggs, i.e. the code is transcluded into a single library.zip thus setuptools reports that those specific version cannot be reported as available, though they are in fact available built into the library this disables that runtime check if the app is running 'frozen'
28 lines
822 B
Python
28 lines
822 B
Python
install_requires=["zfec >= 1.1.0",
|
|
"foolscap >= 0.2.3",
|
|
"simplejson >= 1.7.1",
|
|
"pycryptopp >= 0.2.9",
|
|
"nevow >= 0.6.0",
|
|
"zope.interface >= 3.1.0",
|
|
]
|
|
import sys
|
|
if hasattr(sys, 'frozen'):
|
|
install_requires=[]
|
|
|
|
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()
|