v0.32
[electrum-nvc.git] / setup.py
1 #!/usr/bin/python
2
3 # python setup.py sdist --format=zip,gztar
4
5
6 from distutils.core import setup
7
8 version = "0.32"
9
10 setup(name = "Electrum",
11     version = version,
12     description = "Lightweight Bitcoin Wallet",
13     author = "thomasv",
14     license = "GNU GPLv3",
15     url = "http://ecdsa/electrum",
16     long_description = """Lightweight Bitcoin Wallet""" 
17
18
19 if __name__ == '__main__':
20     import sys, re, shutil
21     if sys.argv[1]=='sdist':
22         _tgz="Electrum-%s.tar.gz"%version
23         _zip="Electrum-%s.zip"%version
24         shutil.copyfile("dist/"+_tgz ,'/var/www/electrum/'+_tgz)
25         shutil.copyfile("dist/"+_zip,'/var/www/electrum/'+_zip)
26         f = open("/var/www/electrum/index.html")
27         s = f.read()
28         f.close()
29         s = re.sub("Electrum-([\d\.a-z]*?)\.tar\.gz", _tgz, s)
30         s = re.sub("Electrum-([\d\.a-z]*?)\.zip", _zip, s)
31         f = open("/var/www/electrum/index.html","w")
32         f.write(s)
33         f.close()
34