From f38ca73dae307441e2a90dbf23bff184e8a99b39 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Thu, 8 Mar 2018 11:52:01 +0100 Subject: [PATCH] setup.py: install optional modules. fixes #3927 --- setup.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 030993b59..3df887b46 100755 --- a/setup.py +++ b/setup.py @@ -42,9 +42,6 @@ setup( name="Electrum", version=version.ELECTRUM_VERSION, install_requires=requirements, - extras_require={ - 'hardware': requirements_hw, - }, packages=[ 'electrum', 'electrum_gui', @@ -89,3 +86,8 @@ setup( url="https://electrum.org", long_description="""Lightweight Bitcoin Wallet""" ) + +# Optional modules (not required to run Electrum) +import pip +opt_modules = requirements_hw + ['pycryptodomex'] +[ pip.main(['install', m]) for m in opt_modules ]