electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit ec929bfaf6cc74f8fc1e4579bb2218fa2af875ea
parent 1880b8359943981c68701268eb6fe825f15ad08a
Author: ThomasV <thomasv@electrum.org>
Date:   Wed, 20 Jan 2016 11:56:07 +0100

patch requests directly from make_packages

Diffstat:
Mcontrib/make_packages | 13+++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/contrib/make_packages b/contrib/make_packages @@ -24,8 +24,6 @@ if __name__ == '__main__': 'six', 'jsonrpclib', ] - # don't use /usr/lib - sys.path = ['/usr/local/lib/python2.7/dist-packages'] for module in deps: f, pathname, descr = imp.find_module(module) target = 'packages/' + module + descr[0] @@ -44,6 +42,17 @@ if __name__ == '__main__': if not os.path.exists(n): os.system("echo \# do not remove>%s"%n) + # patch requests and add cacert.pem + import requests + crt = requests.certs.where() + n = 'packages/requests/certs.py' + with open(n, 'r') as f: + s = f.read() + s = s.replace("'%s'"%crt, "os.path.join(os.path.dirname(__file__), 'cacert.pem')") + with open(n, 'w') as f: + f.write(s) + shutil.copy(crt, 'packages/requests/cacert.pem') + os.system("pyrcc4 icons.qrc -o gui/qt/icons_rc.py") os.system("python setup.py sdist --format=zip,gztar")