[llvm] 8896d12 - [lit] Avoid global imports in module declaration
Julian Lettner via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 27 12:07:30 PDT 2020
Author: Julian Lettner
Date: 2020-03-27T12:07:19-07:00
New Revision: 8896d123154c4606d11f6b6f97c33d5a455cd9ea
URL: https://github.com/llvm/llvm-project/commit/8896d123154c4606d11f6b6f97c33d5a455cd9ea
DIFF: https://github.com/llvm/llvm-project/commit/8896d123154c4606d11f6b6f97c33d5a455cd9ea.diff
LOG: [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
Added:
Modified:
llvm/utils/lit/lit/__init__.py
llvm/utils/lit/setup.py
Removed:
################################################################################
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 @@
__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 @@
packages = find_packages(),
entry_points = {
'console_scripts': [
- 'lit = lit:main',
+ 'lit = lit.main:main',
],
}
)
More information about the llvm-commits
mailing list