forked from dashdot/python-x11_hash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·35 lines (33 loc) · 913 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
from setuptools import setup, Extension
memehash_module = Extension(
'meme_hash',
sources = [
'mememodule.c',
'memehash.c',
'sha3/blake.c',
'sha3/cubehash.c',
'sha3/shavite.c',
'sha3/simd.c',
'sha3/echo.c',
'sha3/sha2.c'
],
include_dirs = ['.', './sha3'],
extra_compile_args = [
'-O2', '-fPIC', '-funroll-loops', '-fomit-frame-pointer',
'-DSPH_SMALL_FOOTPRINT=1', '-DSHA2_INCLUDE_SHA224'
],
define_macros=[
('SPH_SMALL_FOOTPRINT', '1'),
('SPH_COMPACT_BLAKE', '1')
]
)
setup(
name = 'meme_hash',
version = '1.0',
description = 'Bindings for Memehash proof of work function',
author = 'Your Name',
author_email = '[email protected]',
url = 'https://github.com/yourusername/meme_hash',
ext_modules = [memehash_module],
py_modules = ['meme_hash'],
)