From 6c4f6dd59ade0b3ee9e58d31fd61d26ff848632d Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Thu, 29 Nov 2018 16:28:32 -0500 Subject: [PATCH] do not install plyvel on windows --- setup.py | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/setup.py b/setup.py index de5d748d8..bd8206135 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,5 @@ import os +import sys from setuptools import setup, find_packages import torba @@ -7,6 +8,20 @@ BASE = os.path.dirname(__file__) with open(os.path.join(BASE, 'README.md'), encoding='utf-8') as fh: long_description = fh.read() +REQUIRES = [ + 'aiohttp', + 'aiorpcx==0.9.0', + 'coincurve', + 'pbkdf2', + 'cryptography', + 'attrs', + 'plyvel', + 'pylru' +] +if sys.platform.startswith('win32'): + REQUIRES.remove('plyvel') + + setup( name='torba', version=torba.__version__, @@ -33,17 +48,8 @@ setup( 'Topic :: Utilities', ], packages=find_packages(exclude=('tests',)), - python_requires='>=3.6', - install_requires=( - 'aiohttp', - 'aiorpcx==0.9.0', - 'coincurve', - 'pbkdf2', - 'cryptography', - 'attrs', - 'plyvel', - 'pylru' - ), + python_requires='>=3.7', + install_requires=REQUIRES, extras_require={ 'gui': ( 'pyside2',