From c44427d33e5dddcb90292067e648535e567a6374 Mon Sep 17 00:00:00 2001 From: lillypad Date: Sun, 17 Dec 2017 15:22:10 -0400 Subject: [PATCH] requirements.txt support for user only pip requirements --- requirements.txt | 9 +++++++++ setup.py | 15 ++++----------- 2 files changed, 13 insertions(+), 11 deletions(-) create mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 000000000..227ec1cd9 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,9 @@ +pyaes>=0.1a1 +ecdsa>=0.9 +pbkdf2 +requests +qrcode +protobuf +dnspython +jsonrpclib-pelix +PySocks>=1.6.6 diff --git a/setup.py b/setup.py index 9f19e576d..5a7a3f72a 100755 --- a/setup.py +++ b/setup.py @@ -9,6 +9,9 @@ import platform import imp import argparse +with open('requirements.txt') as f: + requirements = f.read().splitlines() + version = imp.load_source('version', 'lib/version.py') if sys.version_info[:3] < (3, 4, 0): @@ -35,17 +38,7 @@ if platform.system() in ['Linux', 'FreeBSD', 'DragonFly']: setup( name="Electrum", version=version.ELECTRUM_VERSION, - install_requires=[ - 'pyaes>=0.1a1', - 'ecdsa>=0.9', - 'pbkdf2', - 'requests', - 'qrcode', - 'protobuf', - 'dnspython', - 'jsonrpclib-pelix', - 'PySocks>=1.6.6', - ], + install_requires=requirements, packages=[ 'electrum', 'electrum_gui',