mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-06-13 04:48:18 +00:00
setup: doc string describing what the require_auto_deps() function is for
This commit is contained in:
@ -20,6 +20,13 @@ if hasattr(sys, 'frozen'):
|
|||||||
install_requires=[]
|
install_requires=[]
|
||||||
|
|
||||||
def require_auto_deps():
|
def require_auto_deps():
|
||||||
|
"""
|
||||||
|
The purpose of this function is to raise a pkg_resources exception if any of the
|
||||||
|
requirements can't be imported. This is just to give earlier and more explicit error
|
||||||
|
messages, as opposed to waiting until the source code tries to import some module from one
|
||||||
|
of these packages and gets an ImportError. This function gets called from
|
||||||
|
src/allmydata/__init__.py .
|
||||||
|
"""
|
||||||
import pkg_resources
|
import pkg_resources
|
||||||
for requirement in install_requires:
|
for requirement in install_requires:
|
||||||
try:
|
try:
|
||||||
|
Reference in New Issue
Block a user