2015-03-06 12:27:11 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
from distutils.core import setup, Extension
|
|
|
|
|
2015-03-14 15:42:05 +00:00
|
|
|
pyethash = Extension('pyethash',
|
2015-03-06 12:27:11 +00:00
|
|
|
sources = [
|
|
|
|
'src/python/core.c',
|
|
|
|
'src/libethash/util.c',
|
|
|
|
'src/libethash/internal.c',
|
2015-03-14 15:42:05 +00:00
|
|
|
'src/libethash/sha3.c'],
|
|
|
|
depends = [
|
|
|
|
'src/libethash/ethash.h',
|
|
|
|
'src/libethash/compiler.h',
|
|
|
|
'src/libethash/data_sizes.h',
|
|
|
|
'src/libethash/endian.h',
|
|
|
|
'src/libethash/ethash.h',
|
|
|
|
'src/libethash/fnv.h',
|
|
|
|
'src/libethash/internal.h',
|
|
|
|
'src/libethash/sha3.h',
|
|
|
|
'src/libethash/util.h'
|
2015-03-06 12:27:11 +00:00
|
|
|
],
|
2015-03-14 15:42:05 +00:00
|
|
|
extra_compile_args = ["-Isrc/", "-std=gnu99", "-Wall"])
|
2015-03-06 12:27:11 +00:00
|
|
|
|
|
|
|
setup (
|
|
|
|
name = 'pyethash',
|
|
|
|
author = "Matthew Wampler-Doty",
|
|
|
|
author_email = "matthew.wampler.doty@gmail.com",
|
|
|
|
license = 'GPL',
|
2015-03-20 10:19:12 +00:00
|
|
|
version = '23.1',
|
2015-03-14 15:42:05 +00:00
|
|
|
url = 'https://github.com/ethereum/ethash',
|
2015-03-20 10:19:12 +00:00
|
|
|
download_url = 'https://github.com/ethereum/ethash/tarball/v23.1',
|
2015-03-06 12:27:11 +00:00
|
|
|
description = 'Python wrappers for ethash, the ethereum proof of work hashing function',
|
2015-03-14 15:42:05 +00:00
|
|
|
ext_modules = [pyethash],
|
2015-03-06 12:27:11 +00:00
|
|
|
)
|