Updated code quality class doc string, import ignore & comment spaces in setup.py #1817
5
setup.py
5
setup.py
|
@ -5,6 +5,7 @@ import platform
|
||||||
import shutil
|
import shutil
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
from importlib import import_module
|
||||||
from setuptools import setup, Extension
|
from setuptools import setup, Extension
|
||||||
from setuptools.command.install import install
|
from setuptools.command.install import install
|
||||||
|
|
||||||
|
@ -27,7 +28,7 @@ EXTRAS_REQUIRE = {
|
||||||
|
|
||||||
|
|
||||||
class InstallCmd(install):
|
class InstallCmd(install):
|
||||||
'''Install cmd'''
|
"""Custom setuptools install command preparing icons"""
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
# prepare icons directories
|
# prepare icons directories
|
||||||
|
@ -86,7 +87,7 @@ if __name__ == "__main__":
|
||||||
"msgpack-python" if msgpack.version[:2] < (0, 6) else "msgpack")
|
"msgpack-python" if msgpack.version[:2] < (0, 6) else "msgpack")
|
||||||
except ImportError:
|
except ImportError:
|
||||||
try:
|
try:
|
||||||
import umsgpack # noqa:F401
|
import_module('umsgpack')
|
||||||
installRequires.append("umsgpack")
|
installRequires.append("umsgpack")
|
||||||
except ImportError:
|
except ImportError:
|
||||||
packages += ['pybitmessage.fallback.umsgpack']
|
packages += ['pybitmessage.fallback.umsgpack']
|
||||||
|
|
Reference in New Issue
Block a user