-
Notifications
You must be signed in to change notification settings - Fork 19
/
setup.py
37 lines (32 loc) · 1.2 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('~/.bitcoinpy.cfg'))
shutil.copy('etc/miner.cfg', os.path.expanduser('~/.bitcoinpy-miner.cfg'))
_PKG_ROOT = 'bitcoinpy'
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': ['bitcoinpy=bitcoinpy.bitcoin:run',
'minerpy=bitcoinpy.miner.miner:run',
'walletpy=bitcoinpy.wallet.walletpy:main',],},
version = "0.0.1",
description = "Python implementation of Bitcoin",
url = "https://www.bitcoinpy.org",
author = "Obulpathi N Challa",
author_email = "[email protected]",
zip_safe = False,
package_data = {
_PKG_ROOT: ['data/genesis.dat'],
},
)