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:
parent
92810a287f
commit
101c8b1344
10
setup.py
10
setup.py
@ -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=[
|
||||
|
Loading…
Reference in New Issue
Block a user