do not install plyvel on windows

This commit is contained in:
Lex Berezhny 2018-11-29 16:28:32 -05:00
parent 997b573aa4
commit 6c4f6dd59a

View file

@ -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',