forked from spesmilo/electrum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
68 lines (58 loc) · 2.11 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/usr/bin/python
# python setup.py sdist --format=zip,gztar
from distutils.core import setup
from lib.version import ELECTRUM_VERSION as version
import lib.util as util
import os, sys, platform
from lib.util import print_error
if sys.version_info[:3] < (2,6,0):
print_error("Error: Electrum requires Python version >= 2.6.0...")
sys.exit(1)
data_files = []
if platform.system() != 'Windows' and platform.system() != 'Darwin':
data_files += [
('/usr/share/applications/',['electrum.desktop']),
('/usr/share/app-install/icons/',['electrum.png'])
]
if not os.path.exists('locale'):
os.mkdir('locale')
for lang in os.listdir('locale'):
if os.path.exists('locale/%s/LC_MESSAGES/electrum.mo'%lang):
data_files.append( ('/usr/share/locale/%s/LC_MESSAGES'%lang, ['locale/%s/LC_MESSAGES/electrum.mo'%lang]) )
data_files += [
(util.appdata_dir(), ["data/background.png", "data/style.css"]),
(os.path.join(util.appdata_dir(), "icons"), [
"data/icons/accounts.png",
"data/icons/confirmed.png",
"data/icons/expand.png",
"data/icons/interact.png",
"data/icons/unconfirmed.png"
])
]
setup(name = "Electrum",
version = version,
install_requires = ['slowaes','ecdsa'],
package_dir = {'electrum': 'lib'},
scripts= ['electrum'],
data_files = data_files,
py_modules = ['electrum.version',
'electrum.wallet',
'electrum.interface',
'electrum.gui',
'electrum.gui_qt',
'electrum.gui_lite',
'electrum.exchange_rate',
'electrum.icons_rc',
'electrum.mnemonic',
'electrum.pyqrnative',
'electrum.bmp',
'electrum.msqr',
'electrum.util',
'electrum.i18n'],
description = "Lightweight Bitcoin Wallet",
author = "thomasv",
author_email = "thomasv@gitorious",
license = "GNU GPLv3",
url = "http://ecdsa/electrum",
long_description = """Lightweight Bitcoin Wallet"""
)