You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
2.4 KiB

13 years ago
#!/usr/bin/python
# python setup.py sdist --format=zip,gztar
13 years ago
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):
sys.exit("Error: Electrum requires Python version >= 2.6.0...")
13 years ago
data_files = []
if (len(sys.argv) > 1 and (sys.argv[1] == "sdist")) or (platform.system() != 'Windows' and platform.system() != 'Darwin'):
print "Including all files"
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]) )
13 years ago
data_files += [
(util.appdata_dir(), ["data/noface.svg", "data/README"]),
(os.path.join(util.appdata_dir(), "cleanlook"), [
"data/cleanlook/name.cfg",
"data/cleanlook/style.css"
]),
(os.path.join(util.appdata_dir(), "dark"), [
"data/dark/background.png",
"data/dark/name.cfg",
"data/dark/style.css"
])
]
13 years ago
setup(name = "Electrum",
version = version,
install_requires = ['slowaes','ecdsa'],
package_dir = {'electrum': 'lib'},
scripts= ['electrum'],
13 years ago
data_files = data_files,
py_modules = ['electrum.version',
'electrum.wallet',
'electrum.interface',
'electrum.gui',
'electrum.gui_qt',
13 years ago
'electrum.gui_lite',
'electrum.exchange_rate',
'electrum.icons_rc',
'electrum.mnemonic',
'electrum.pyqrnative',
'electrum.qrscanner',
'electrum.history_widget',
'electrum.simple_config',
'electrum.socks',
'electrum.bmp',
13 years ago
'electrum.msqr',
'electrum.util',
'electrum.i18n'],
13 years ago
description = "Lightweight Bitcoin Wallet",
author = "thomasv",
author_email = "thomasv@gitorious",
13 years ago
license = "GNU GPLv3",
url = "http://electrum-desktop.com",
13 years ago
long_description = """Lightweight Bitcoin Wallet"""
)