-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
54 lines (44 loc) · 1.81 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
from setuptools import setup, Extension
vertcoinsources = [
'scrypt.c',
'Lyra2RE.c',
'Sponge.c',
'Lyra2.c',
'sha3/blake.c',
'sha3/groestl.c',
'sha3/keccak.c',
'sha3/cubehash.c',
'sha3/bmw.c',
'sha3/skein.c',
'h2.c',
'tiny_sha3/sha3.c'
]
vertcoinincludes = [
'.',
'./sha3',
'./tiny_sha3'
]
vtc_scrypt_hash_module = Extension('vtc_scrypt_new',
sources = vertcoinsources + ['scryptmodule.c'],
extra_compile_args=['-O3', '-msse3'],
include_dirs=vertcoinincludes)
lyra2re_hash_module = Extension('lyra2re_hash',
sources = vertcoinsources + ['lyra2remodule.c'],
include_dirs=vertcoinincludes)
lyra2re2_hash_module = Extension('lyra2re2_hash',
sources = vertcoinsources + ['lyra2re2module.c'],
include_dirs=vertcoinincludes)
lyra2re3_hash_module = Extension('lyra2re3_hash',
sources = vertcoinsources + ['lyra2re3module.c'],
include_dirs=vertcoinincludes)
verthash_module = Extension('verthash',
sources = vertcoinsources + ['verthashmodule.c'],
extra_compile_args=['-std=c99'],
include_dirs=vertcoinincludes)
setup (name = 'vertcoinhash',
version = '1.0.1',
author_email = '[email protected]',
author = 'vertion',
url = 'https://github.com/vertcoin-project/vertcoinhash-python',
description = 'Bindings for proof of work used by Vertcoin',
ext_modules = [verthash_module, lyra2re3_hash_module, lyra2re2_hash_module, lyra2re_hash_module, vtc_scrypt_hash_module])