1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-21 23:18:13 +00:00

add hack to ignore hidapi dependency (--disable-hidapi)

This commit is contained in:
Pavol Rusnak 2016-10-03 20:37:48 +02:00
parent 92810a287f
commit 101c8b1344
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -1,6 +1,14 @@
#!/usr/bin/env python
from setuptools import setup
install_requires = ['ecdsa>=0.9', 'protobuf>=2.6.1', 'mnemonic>=0.8', 'setuptools>=19.0']
import sys
if '--disable-hidapi' in sys.argv:
sys.argv.remove('--disable-hidapi')
else:
install_requires.append('hidapi>=0.7.99')
setup(
name='trezor',
version='0.7.4',
@ -27,7 +35,7 @@ setup(
],
scripts = ['trezorctl'],
test_suite='tests',
install_requires=['ecdsa>=0.9', 'protobuf>=2.6.1', 'mnemonic>=0.8', 'hidapi>=0.7.99', 'setuptools>=19.0'],
install_requires=install_requires,
include_package_data=True,
zip_safe=False,
classifiers=[