-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathsetup.py
More file actions
51 lines (45 loc) · 1.5 KB
/
setup.py
File metadata and controls
51 lines (45 loc) · 1.5 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
# -*- Mode: Python -*-
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
exts = [
Extension ('caesure.proto', ['caesure/proto.pyx']),
Extension ('caesure._script', ['caesure/_script.pyx']),
Extension ('caesure.txfaa', ['caesure/txfaa.pyx'], language="c++"),
]
import os
if os.path.isfile ('/usr/local/lib/libsecp256k1.a'):
exts.append (
Extension (
"caesure.secp256k1",
["caesure/secp256k1.pyx"],
include_dirs=['/usr/local/include'],
libraries=['secp256k1', 'gmp', 'z'],
extra_link_args = ['-Wl,-rpath,/usr/local/lib'],
)
)
## edit bitcoin.py as well (search for 'ecdsa_cryptopp').
# cryptopp = '/home/rushing/src/crypto++'
# exts.append (
# Extension (
# "caesure.cryptopp",
# ["caesure/cryptopp.pyx", "caesure/cryptopp_wrap.cpp"],
# include_dirs=[cryptopp],
# library_dirs=[cryptopp],
# libraries=['cryptopp'],
# language="c++",
# )
# )
# XXX re-tag shrapnel & require the correct version here. [for coro.ssl.openssl.ecdsa]
setup (
name = 'caesure',
version = '0.1',
description = 'bitcoin node',
author = "Sam Rushing",
packages = ['caesure'],
ext_modules = exts,
install_requires = ['cython>=0.20.2'],
license = 'Simplified BSD',
cmdclass = {'build_ext': build_ext},
scripts = ['scripts/caesure'],
)