@staticmethod
def pip_imported_during_build():
    '\n        Detect if pip is being imported in a build script. Ref #2355.\n        '
    import traceback
    return any((frame.f_globals['__file__'].endswith('setup.py') for (frame, line) in traceback.walk_stack(None)))
Detect if pip is being imported in a build script. Ref #2355.
@staticmethod
def pip_imported_during_build():
    '\n        \n        '
    import traceback
    return any((frame.f_globals['__file__'].endswith('setup.py') for (frame, line) in traceback.walk_stack(None)))