forked from slush0/stratum-mining-proxy
-
Notifications
You must be signed in to change notification settings - Fork 14
/
setup.py
43 lines (38 loc) · 1.32 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
#!/usr/bin/env python
from distribute_setup import use_setuptools
use_setuptools()
from setuptools import setup
import sys, os
try:
import py2exe
except ImportError:
py2exe = None
from mining_libs import version
args = {
'name': 'stratum_mining_proxy',
'version': version.VERSION,
'description': 'Getwork-compatible proxy for Stratum mining pools',
'author': 'slush',
'author_email': '[email protected]',
'url': 'http://mining.bitcoin.cz/stratum-mining/',
'py_modules': ['mining_libs.client_service', 'mining_libs.getwork_listener',
'mining_libs.jobs',
'mining_libs.multicast_responder', 'mining_libs.stratum_listener',
'mining_libs.utils', 'mining_libs.version', 'mining_libs.worker_registry'],
'install_requires': ['setuptools>=0.6c11', 'twisted>=12.2.0', 'stratum>=0.2.11', 'argparse'],
'scripts': ['mining_proxy.py'],
}
if py2exe != None:
args.update({
# py2exe options
'options': {'py2exe':
{'optimize': 2,
'bundle_files': 1,
'compressed': True,
'dll_excludes': ['mswsock.dll', 'powrprof.dll'],
},
},
'console': ['mining_proxy.py'],
'zipfile': None,
})
setup(**args)