Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
be01e5c9
Commit
be01e5c9
authored
Mar 30, 2014
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update docstring
parent
215a0cdd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
setuptools/command/install.py
setuptools/command/install.py
+4
-5
No files found.
setuptools/command/install.py
View file @
be01e5c9
...
...
@@ -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
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment