2015-01-12 18:11:43 +00:00
|
|
|
#!/usr/bin/python
|
2015-01-11 15:43:07 +00:00
|
|
|
from distutils.core import setup
|
|
|
|
from distutils.extension import Extension
|
|
|
|
from Cython.Build import cythonize
|
|
|
|
from Cython.Distutils import build_ext
|
|
|
|
|
2015-01-12 18:11:43 +00:00
|
|
|
srcs = [
|
|
|
|
'base58',
|
|
|
|
'bignum',
|
|
|
|
'bip32',
|
|
|
|
'ecdsa',
|
|
|
|
'hmac',
|
|
|
|
'rand',
|
|
|
|
'ripemd160',
|
|
|
|
'secp256k1',
|
|
|
|
'sha2',
|
2015-01-11 15:43:07 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
extensions = [
|
|
|
|
Extension('TrezorCrypto',
|
2015-01-12 18:11:43 +00:00
|
|
|
sources = ['TrezorCrypto.pyx', 'c.pxd'] + [ x + '.c' for x in srcs ],
|
2015-01-11 15:43:07 +00:00
|
|
|
extra_compile_args = ['-DUSE_PUBKEY_VALIDATE=0'],
|
|
|
|
)
|
|
|
|
]
|
|
|
|
|
|
|
|
setup(
|
|
|
|
name = 'TrezorCrypto',
|
2015-01-12 18:11:43 +00:00
|
|
|
version = '0.0.0',
|
2015-01-11 15:43:07 +00:00
|
|
|
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),
|
|
|
|
)
|