tadd headers file only if it is found - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 5a564008d18616cf640a49be3f181cdff18baacd DIR parent 34a6cc5deebfbd06ae375ff31116f609f15190c0 HTML Author: thomasv <thomasv@gitorious> Date: Tue, 6 Nov 2012 09:01:30 +0100 add headers file only if it is found Diffstat: M setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- DIR diff --git a/setup.py b/setup.py t@@ -25,7 +25,7 @@ if (len(sys.argv) > 1 and (sys.argv[1] == "sdist")) or (platform.system() != 'Wi data_files.append( ('/usr/share/locale/%s/LC_MESSAGES'%lang, ['locale/%s/LC_MESSAGES/electrum.mo'%lang]) ) data_files += [ - (util.appdata_dir(), ["data/README", "data/blockchain_headers"]), + (util.appdata_dir(), ["data/README"]), (os.path.join(util.appdata_dir(), "cleanlook"), [ "data/cleanlook/name.cfg", "data/cleanlook/style.css" t@@ -37,6 +37,9 @@ data_files += [ ]) ] +if os.path.exists("data/blockchain_headers"): + data_files.append( (util.appdata_dir(), ["data/blockchain_headers"]) ) + setup(name = "Electrum", version = version.ELECTRUM_VERSION, install_requires = ['slowaes','ecdsa'],