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 os
import sys
from setuptools import setup, find_packages from setuptools import setup, find_packages
import torba import torba
@ -7,6 +8,20 @@ BASE = os.path.dirname(__file__)
with open(os.path.join(BASE, 'README.md'), encoding='utf-8') as fh: with open(os.path.join(BASE, 'README.md'), encoding='utf-8') as fh:
long_description = fh.read() 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( setup(
name='torba', name='torba',
version=torba.__version__, version=torba.__version__,
@ -33,17 +48,8 @@ setup(
'Topic :: Utilities', 'Topic :: Utilities',
], ],
packages=find_packages(exclude=('tests',)), packages=find_packages(exclude=('tests',)),
python_requires='>=3.6', python_requires='>=3.7',
install_requires=( install_requires=REQUIRES,
'aiohttp',
'aiorpcx==0.9.0',
'coincurve',
'pbkdf2',
'cryptography',
'attrs',
'plyvel',
'pylru'
),
extras_require={ extras_require={
'gui': ( 'gui': (
'pyside2', 'pyside2',