mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-26 17:38:39 +00:00
36 lines
757 B
Python
Executable File
36 lines
757 B
Python
Executable File
#!/usr/bin/python
|
|
from distutils.core import setup
|
|
from distutils.extension import Extension
|
|
from Cython.Build import cythonize
|
|
from Cython.Distutils import build_ext
|
|
|
|
srcs = [
|
|
'base58',
|
|
'bignum',
|
|
'bip32',
|
|
'ecdsa',
|
|
'hmac',
|
|
'rand',
|
|
'ripemd160',
|
|
'secp256k1',
|
|
'sha2',
|
|
]
|
|
|
|
extensions = [
|
|
Extension('TrezorCrypto',
|
|
sources = ['TrezorCrypto.pyx', 'c.pxd'] + [ x + '.c' for x in srcs ],
|
|
extra_compile_args = ['-DUSE_PUBKEY_VALIDATE=0'],
|
|
)
|
|
]
|
|
|
|
setup(
|
|
name = 'TrezorCrypto',
|
|
version = '0.0.0',
|
|
description = 'Cython wrapper around trezor-crypto library',
|
|
author = 'Pavol Rusnak',
|
|
author_email = 'stick@satoshilabs.com',
|
|
url = 'https://github.com/trezor/trezor-crypto',
|
|
cmdclass = {'build_ext': build_ext},
|
|
ext_modules = cythonize(extensions),
|
|
)
|