|
@ -4,6 +4,7 @@ |
|
|
|
|
|
|
|
|
from distutils.core import setup |
|
|
from distutils.core import setup |
|
|
from lib.version import ELECTRUM_VERSION as version |
|
|
from lib.version import ELECTRUM_VERSION as version |
|
|
|
|
|
import lib.util as util |
|
|
import os, sys, platform |
|
|
import os, sys, platform |
|
|
if sys.version_info[:3] < (2,6,0): |
|
|
if sys.version_info[:3] < (2,6,0): |
|
|
print "Electrum requires Python version >= 2.6.0... exiting" |
|
|
print "Electrum requires Python version >= 2.6.0... exiting" |
|
@ -16,13 +17,24 @@ if platform.system() != 'Windows' and platform.system() != 'Darwin': |
|
|
data_files += [ |
|
|
data_files += [ |
|
|
('/usr/share/applications/',['electrum.desktop']), |
|
|
('/usr/share/applications/',['electrum.desktop']), |
|
|
('/usr/share/app-install/icons/',['electrum.png']) |
|
|
('/usr/share/app-install/icons/',['electrum.png']) |
|
|
] |
|
|
] |
|
|
if not os.path.exists('locale'): |
|
|
if not os.path.exists('locale'): |
|
|
os.mkdir('locale') |
|
|
os.mkdir('locale') |
|
|
for lang in os.listdir('locale'): |
|
|
for lang in os.listdir('locale'): |
|
|
if os.path.exists('locale/%s/LC_MESSAGES/electrum.mo'%lang): |
|
|
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.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", |
|
|
setup(name = "Electrum", |
|
|
version = version, |
|
|
version = version, |
|
|
install_requires = ['slowaes','ecdsa'], |
|
|
install_requires = ['slowaes','ecdsa'], |
|
|