add headers file only if it is found

This commit is contained in:
thomasv 2012-11-06 09:01:30 +01:00
parent 34a6cc5dee
commit 5a564008d1
1 changed files with 4 additions and 1 deletions

View File

@ -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"
@ -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'],