3 # python setup.py sdist --format=zip,gztar
5 from distutils.core import setup
6 from version import ELECTRUM_VERSION as version
8 setup(name = "Electrum",
10 description = "Lightweight Bitcoin Wallet",
12 license = "GNU GPLv3",
13 url = "http://ecdsa/electrum",
14 long_description = """Lightweight Bitcoin Wallet"""
17 if __name__ == '__main__':
18 import sys, re, shutil
19 if sys.argv[1]=='sdist':
20 _tgz="Electrum-%s.tar.gz"%version
21 _zip="Electrum-%s.zip"%version
22 shutil.copyfile("dist/"+_tgz ,'/var/www/electrum/'+_tgz)
23 shutil.copyfile("dist/"+_zip,'/var/www/electrum/'+_zip)
24 f = open("/var/www/electrum/index.html")
27 s = re.sub("Electrum-([\d\.a-z]*?)\.tar\.gz", _tgz, s)
28 s = re.sub("Electrum-([\d\.a-z]*?)\.zip", _zip, s)
29 f = open("/var/www/electrum/index.html","w")