forked from trezor/trezor-firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·39 lines (35 loc) · 828 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env python
from distutils.core import setup
from distutils.extension import Extension
from Cython.Build import cythonize
from Cython.Distutils import build_ext
srcs = [
"nist256p1",
"base58",
"bignum",
"bip32",
"ecdsa",
"curve25519",
"hmac",
"rand",
"ripemd160",
"secp256k1",
"sha2",
]
extensions = [
Extension(
"TrezorCrypto",
sources=["TrezorCrypto.pyx", "c.pxd"] + [x + ".c" for x in srcs],
extra_compile_args=[],
)
]
setup(
name="TrezorCrypto",
version="0.0.0",
description="Cython wrapper around trezor-crypto library",
author="Pavol Rusnak",
author_email="[email protected]",
url="https://github.com/trezor/trezor-crypto",
cmdclass={"build_ext": build_ext},
ext_modules=cythonize(extensions),
)