mirror of https://github.com/ethereum/go-ethereum
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.3 KiB
48 lines
1.3 KiB
10 years ago
|
#!/usr/bin/env python
|
||
10 years ago
|
import os
|
||
10 years ago
|
from distutils.core import setup, Extension
|
||
10 years ago
|
sources = [
|
||
|
'src/python/core.c',
|
||
|
'src/libethash/io.c',
|
||
|
'src/libethash/internal.c',
|
||
|
'src/libethash/sha3.c']
|
||
|
if os.name == 'nt':
|
||
|
sources += [
|
||
|
'src/libethash/util_win32.c',
|
||
|
'src/libethash/io_win32.c',
|
||
|
'src/libethash/mmap_win32.c',
|
||
|
]
|
||
|
else:
|
||
|
sources += [
|
||
|
'src/libethash/io_posix.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/io.h',
|
||
|
'src/libethash/fnv.h',
|
||
|
'src/libethash/internal.h',
|
||
|
'src/libethash/sha3.h',
|
||
|
'src/libethash/util.h',
|
||
|
]
|
||
10 years ago
|
pyethash = Extension('pyethash',
|
||
10 years ago
|
sources=sources,
|
||
|
depends=depends,
|
||
10 years ago
|
extra_compile_args=["-Isrc/", "-std=gnu99", "-Wall"])
|
||
|
|
||
|
setup(
|
||
|
name='pyethash',
|
||
|
author="Matthew Wampler-Doty",
|
||
|
author_email="matthew.wampler.doty@gmail.com",
|
||
|
license='GPL',
|
||
|
version='0.1.23',
|
||
|
url='https://github.com/ethereum/ethash',
|
||
|
download_url='https://github.com/ethereum/ethash/tarball/v23',
|
||
|
description=('Python wrappers for ethash, the ethereum proof of work'
|
||
|
'hashing function'),
|
||
|
ext_modules=[pyethash],
|
||
|
)
|