Skip to content

Commit

Permalink
[bugfix] lazy import setuptools in setup.py
Browse files Browse the repository at this point in the history
Bug: T354515
Change-Id: I1444a1cdb29a55a96dad686c69206f1fbe6bd35e
  • Loading branch information
xqt committed Jan 8, 2024
1 parent 8327304 commit 8a75a78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
import re
import sys

from setuptools import setup


if sys.version_info[:3] >= (3, 9):
List = list
Expand Down Expand Up @@ -211,6 +209,8 @@ def get_packages(name) -> List[str]:

def main() -> None:
"""Setup entry point."""
from setuptools import setup

version = get_validated_version()
setup(
name=metadata.__name__,
Expand Down

0 comments on commit 8a75a78

Please sign in to comment.