-
Notifications
You must be signed in to change notification settings - Fork 12
/
setup.py
42 lines (37 loc) · 1.23 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
#!/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': 'Stratum proxy new generation',
'author': 'slush/p4u',
'author_email': '[email protected]/[email protected]',
'url': 'http://mining.bitcoin.cz/stratum-mining/',
'py_modules': ['mining_libs.client_service', 'mining_libs.share_stats',
'mining_libs.jobs', 'mining_libs.stratum_listener',
'mining_libs.utils', 'mining_libs.version'],
'install_requires': ['setuptools>=0.6c11', 'twisted>=12.2.0', 'stratum>=0.2.15', 'argparse'],
'scripts': ['stproxy-ng.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)