1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-24 08:28:12 +00:00
trezor-firmware/crypto/setup.py

40 lines
828 B
Python
Raw Normal View History

2018-09-30 13:40:18 +00:00
#!/usr/bin/env python
2015-01-11 15:43:07 +00:00
from distutils.core import setup
from distutils.extension import Extension
2015-01-11 15:43:07 +00:00
from Cython.Build import cythonize
from Cython.Distutils import build_ext
srcs = [
"nist256p1",
"base58",
"bignum",
"bip32",
"ecdsa",
"curve25519",
"hmac",
"rand",
"ripemd160",
"secp256k1",
"sha2",
2015-01-11 15:43:07 +00:00
]
extensions = [
Extension(
"TrezorCrypto",
sources=["TrezorCrypto.pyx", "c.pxd"] + [x + ".c" for x in srcs],
extra_compile_args=[],
)
2015-01-11 15:43:07 +00:00
]
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),
2015-01-11 15:43:07 +00:00
)