From e82e97cb2b279b0f3e086746d6c9a371157331c9 Mon Sep 17 00:00:00 2001 From: "kuldeep.k@cisinlabs.com" Date: Fri, 27 Aug 2021 18:53:59 +0530 Subject: [PATCH] Updated InstallCmd docstring & replaced unused import ignore warning by importlib import_module function --- setup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index ed3d4705..9f6a16ca 100644 --- a/setup.py +++ b/setup.py @@ -5,6 +5,7 @@ import platform import shutil import sys +from importlib import import_module from setuptools import setup, Extension from setuptools.command.install import install @@ -27,7 +28,7 @@ EXTRAS_REQUIRE = { class InstallCmd(install): - '''Install cmd''' + """Custom setuptools install command preparing icons""" def run(self): # prepare icons directories @@ -86,7 +87,7 @@ if __name__ == "__main__": "msgpack-python" if msgpack.version[:2] < (0, 6) else "msgpack") except ImportError: try: - import umsgpack # noqa:F401 + import_module('umsgpack') installRequires.append("umsgpack") except ImportError: packages += ['pybitmessage.fallback.umsgpack']