mv client/* . && rm -fr client
[electrum-nvc.git] / setup.py
1 #!/usr/bin/python
2
3 # python setup.py sdist --format=zip,gztar
4
5 from distutils.core import setup
6 from version import ELECTRUM_VERSION as version
7
8 setup(name = "Electrum",
9     version = version,
10     description = "Lightweight Bitcoin Wallet",
11     author = "thomasv",
12     license = "GNU GPLv3",
13     url = "http://ecdsa/electrum",
14     long_description = """Lightweight Bitcoin Wallet""" 
15
16
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")
25         s = f.read()
26         f.close()
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")
30         f.write(s)
31         f.close()
32