-
Notifications
You must be signed in to change notification settings - Fork 385
/
setup.py
46 lines (38 loc) · 1.05 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
44
45
46
#!/usr/bin/env python
from detect import LINUX
from distribute_setup import use_setuptools
from setuptools import setup
from version import VERSION
use_setuptools()
try:
import py2exe
except ImportError:
py2exe = None
args = {
'name': 'poclbm',
'version': VERSION,
'description': 'Bitcoin miner in python',
'author': 'Momchil Georgiev',
'author_email': 'pishtov@gmail.com',
'url': 'https://github.com/m0mchil/poclbm/',
'install_requires': ['pyserial>=2.6'],
'scripts': ['poclbm.py'],
}
if LINUX:
args['install_requires'].append('pyudev>=0.16')
if py2exe:
args.update({
# py2exe options
'options': {'py2exe':
{'optimize': 2,
'bundle_files': 2,
'compressed': True,
'dll_excludes': ['OpenCL.dll', 'w9xpopen.exe', 'boost_python-vc90-mt-1_39.dll'],
'excludes': ["Tkconstants", "Tkinter", "tcl", "curses", "_ssl", "pyexpat", "unicodedata", "bz2"],
},
},
'console': ['poclbm.py'],
'data_files': ['phatk.cl'],
'zipfile': None,
})
setup(**args)