diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2014-03-30 13:02:50 +0100 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-03-30 13:02:50 +0100 |
commit | be01e5c951fb85be934cf66a4d7878faebbb6cda (patch) | |
tree | 771403b0423a2d3858cfd10853ef31960f5d5738 /setuptools/command/install.py | |
parent | 215a0cddf02d70e9b92b27b5b7997314b6527426 (diff) | |
download | python-setuptools-git-be01e5c951fb85be934cf66a4d7878faebbb6cda.tar.gz |
Update docstring
Diffstat (limited to 'setuptools/command/install.py')
-rw-r--r-- | setuptools/command/install.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/setuptools/command/install.py b/setuptools/command/install.py index 1d7810b8..3e6ba427 100644 --- a/setuptools/command/install.py +++ b/setuptools/command/install.py @@ -64,13 +64,12 @@ class install(_install): @staticmethod def _called_from_setup(run_frame): """ - Attempt to detect whether we were called from setup() or by another - command. If we were called by setup(), our caller will be the + Attempt to detect whether run() was called from setup() or by another + command. If called by setup(), the parent caller will be the 'run_command' method in 'distutils.dist', and *its* caller will be - the 'run_commands' method. If we were called any other way, our + the 'run_commands' method. If called any other way, the immediate caller *might* be 'run_command', but it won't have been - called by 'run_commands'. This is slightly kludgy, but seems to - work. + called by 'run_commands'. Return True in that case or False otherwise. """ res = inspect.getouterframes(run_frame)[2] caller, = res[:1] |