electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 36daa3209191791715bfb72e5f3ddc8b3bf151e5
parent 539d68e7d72be1d301913b72e8e21269d3ced29b
Author: ThomasV <thomasv@gitorious>
Date:   Fri, 18 May 2012 19:59:47 +0200

detect mo files

Diffstat:
Msetup.py | 19++++++++++++-------
1 file changed, 12 insertions(+), 7 deletions(-)

diff --git a/setup.py b/setup.py @@ -4,19 +4,24 @@ from distutils.core import setup from lib.version import ELECTRUM_VERSION as version +import os + + +data_files=[ + ('/usr/share/applications/',['electrum.desktop']), + ('/usr/share/app-install/icons/',['electrum.png']) + ] + +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]) ) setup(name = "Electrum", version = version, install_requires = ['slowaes','ecdsa'], package_dir = {'electrum': 'lib'}, scripts= ['electrum'], - data_files=[ - ('/usr/share/applications/',['electrum.desktop']), - ('/usr/share/app-install/icons/',['electrum.png']), - ('/usr/share/locale/de/LC_MESSAGES', ['locale/de/LC_MESSAGES/electrum.mo']), - ('/usr/share/locale/fr/LC_MESSAGES', ['locale/fr/LC_MESSAGES/electrum.mo']), - ('/usr/share/locale/si/LC_MESSAGES', ['locale/si/LC_MESSAGES/electrum.mo']), - ], + data_files = data_files, py_modules = ['electrum.version', 'electrum.wallet', 'electrum.interface',