setup.py 828 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!/usr/bin/env python
  2. from distutils.core import setup
  3. from distutils.extension import Extension
  4. from Cython.Build import cythonize
  5. from Cython.Distutils import build_ext
  6. srcs = [
  7. "nist256p1",
  8. "base58",
  9. "bignum",
  10. "bip32",
  11. "ecdsa",
  12. "curve25519",
  13. "hmac",
  14. "rand",
  15. "ripemd160",
  16. "secp256k1",
  17. "sha2",
  18. ]
  19. extensions = [
  20. Extension(
  21. "TrezorCrypto",
  22. sources=["TrezorCrypto.pyx", "c.pxd"] + [x + ".c" for x in srcs],
  23. extra_compile_args=[],
  24. )
  25. ]
  26. setup(
  27. name="TrezorCrypto",
  28. version="0.0.0",
  29. description="Cython wrapper around trezor-crypto library",
  30. author="Pavol Rusnak",
  31. author_email="stick@satoshilabs.com",
  32. url="https://github.com/trezor/trezor-crypto",
  33. cmdclass={"build_ext": build_ext},
  34. ext_modules=cythonize(extensions),
  35. )