From 8896d123154c4606d11f6b6f97c33d5a455cd9ea Mon Sep 17 00:00:00 2001 From: Julian Lettner Date: Fri, 27 Mar 2020 10:46:32 -0700 Subject: [PATCH] [lit] Avoid global imports in module declaration A previous attempt to cleanup module imports broke installing via pip/setup.py [1]. This should be fixed now. [1] cf252240e8819d0c90a5e10f773078bdeba33e44 Reviewed By: paquette Differential Revision: https://reviews.llvm.org/D76940 --- llvm/utils/lit/lit/__init__.py | 1 - llvm/utils/lit/setup.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/llvm/utils/lit/lit/__init__.py b/llvm/utils/lit/lit/__init__.py index d364464d7789..6bf0132d4252 100644 --- a/llvm/utils/lit/lit/__init__.py +++ b/llvm/utils/lit/lit/__init__.py @@ -6,4 +6,3 @@ __versioninfo__ = (0, 11, 0) __version__ = '.'.join(str(v) for v in __versioninfo__) + 'dev' __all__ = [] -from .main import main diff --git a/llvm/utils/lit/setup.py b/llvm/utils/lit/setup.py index 9d26b2ed71c7..9224ec146758 100644 --- a/llvm/utils/lit/setup.py +++ b/llvm/utils/lit/setup.py @@ -71,7 +71,7 @@ https://github.com/llvm/llvm-project/tree/master/llvm/utils/lit packages = find_packages(), entry_points = { 'console_scripts': [ - 'lit = lit:main', + 'lit = lit.main:main', ], } )