|
@ -12,9 +12,32 @@ if __name__ == '__main__': |
|
|
imp.load_module('electrum', *imp.find_module('../lib')) |
|
|
imp.load_module('electrum', *imp.find_module('../lib')) |
|
|
from electrum.version import ELECTRUM_VERSION as version |
|
|
from electrum.version import ELECTRUM_VERSION as version |
|
|
|
|
|
|
|
|
if not ( os.path.exists('packages')): |
|
|
# copy dependencies into 'packages' directory |
|
|
print "The packages directory is missing." |
|
|
deps = [ |
|
|
sys.exit() |
|
|
'aes', |
|
|
|
|
|
'ecdsa', |
|
|
|
|
|
'pbkdf2', |
|
|
|
|
|
'requests', |
|
|
|
|
|
'pyasn1', |
|
|
|
|
|
'pyasn1_modules', |
|
|
|
|
|
'qrcode', |
|
|
|
|
|
'socks', |
|
|
|
|
|
'google/protobuf', |
|
|
|
|
|
'tlslite', |
|
|
|
|
|
'dns', |
|
|
|
|
|
'six', |
|
|
|
|
|
] |
|
|
|
|
|
for module in deps: |
|
|
|
|
|
f, pathname, descr = imp.find_module(module) |
|
|
|
|
|
target = 'packages/' + module + descr[0] |
|
|
|
|
|
if os.path.exists(target): |
|
|
|
|
|
continue |
|
|
|
|
|
d = os.path.dirname(target) |
|
|
|
|
|
if d and not (os.path.exists(d)): |
|
|
|
|
|
os.makedirs(d) |
|
|
|
|
|
command = "cp -r %s %s"%(pathname, target) |
|
|
|
|
|
print command |
|
|
|
|
|
os.system(command) |
|
|
|
|
|
|
|
|
# os.system("python mki18n.py") |
|
|
# os.system("python mki18n.py") |
|
|
os.system("pyrcc4 icons.qrc -o gui/qt/icons_rc.py") |
|
|
os.system("pyrcc4 icons.qrc -o gui/qt/icons_rc.py") |
|
|