jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/988397 )
Change subject: [bugfix] lazy import setuptools in setup.py ......................................................................
[bugfix] lazy import setuptools in setup.py
Bug: T354515 Change-Id: I1444a1cdb29a55a96dad686c69206f1fbe6bd35e --- M setup.py 1 file changed, 12 insertions(+), 2 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/setup.py b/setup.py index c38db44..f0cf7d3 100755 --- a/setup.py +++ b/setup.py @@ -28,8 +28,6 @@ import re import sys
-from setuptools import setup -
if sys.version_info[:3] >= (3, 9): List = list @@ -211,6 +209,8 @@
def main() -> None: """Setup entry point.""" + from setuptools import setup + version = get_validated_version() setup( name=metadata.__name__,
pywikibot-commits@lists.wikimedia.org