electrum

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

commit 8af3e689fc7277b52111bb35b93e8c73ff16bd51
parent ed9ed43570c240d07cc50114f7e952237858285a
Author: ThomasV <thomasv@gitorious>
Date:   Sun, 10 Jun 2012 15:43:10 +0200

skip data files install on windows

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

diff --git a/setup.py b/setup.py @@ -4,23 +4,24 @@ from distutils.core import setup from lib.version import ELECTRUM_VERSION as version -import os, sys +import os, sys, platform if sys.version_info[:3] < (2,6,0): print "Electrum requires Python version >= 2.6.0... exiting" sys.exit(1) -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 = [] + +if platform.system() != 'Windows': + 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]) ) setup(name = "Electrum", version = version,