-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
37 lines (32 loc) · 1.34 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
import os
import shutil
import setuptools
import subprocess
from pip.req import parse_requirements
# parse_requirements() returns generator of pip.req.InstallRequirement objects
install_reqs = parse_requirements("requirements.txt")
# reqs is a list of requirement
# e.g. ['django==1.5.1', 'mezzanine==1.4.6']
reqs = [str(ir.req) for ir in install_reqs]
# copy configuration files
shutil.copy('etc/config.cfg', os.path.expanduser('~/.reversecoin.cfg'))
shutil.copy('etc/miner.cfg', os.path.expanduser('~/.reversecoin-miner.cfg'))
_PKG_ROOT = 'reversecoin'
setuptools.setup(
name = _PKG_ROOT,
install_requires=reqs,
packages = [_PKG_ROOT] + [_PKG_ROOT+'.'+p for p in setuptools.find_packages(_PKG_ROOT)],
entry_points = {
'console_scripts': ['reversecoind=reversecoin.reversecoinpy:run',
'reversecoin-miner=reversecoin.miner.miner:run',
'rwallet=reversecoin.wallet.rwallet:main',],},
version = subprocess.Popen(['python', 'reversecoin/version.py', '-v'], stdout=subprocess.PIPE).communicate()[0].replace('\n', ''),
description = "A secure reversable crypto currency",
url = "http://www.reversecoin.org",
author = "Obulpathi N Challa",
author_email = "[email protected]",
zip_safe = False,
package_data = {
_PKG_ROOT: ['data/genesis.dat'],
},
)