From 2973a79c599f253afcc23d0def0b23e6399b6d9c Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sun, 16 Aug 2015 17:24:40 +1200 Subject: [PATCH] Adapt mitmproxy.spec for new cryptography, certifi and new release structure --- release/mitmproxy.spec | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/release/mitmproxy.spec b/release/mitmproxy.spec index 9aab5ef46..a5a75d756 100644 --- a/release/mitmproxy.spec +++ b/release/mitmproxy.spec @@ -1,24 +1,29 @@ # -*- mode: python -*- - +import os.path from glob import glob -a = Analysis(['./mitmproxy'], +VENV = "../release/venv" + +a = Analysis(['../mitmproxy/mitmproxy'], hiddenimports=[], hookspath=None, runtime_hooks=None, excludes=None, ) a.datas = Tree( - "./libmproxy/onboarding/templates", + "../mitmproxy/libmproxy/onboarding/templates", prefix="libmproxy/onboarding/templates" ) a.datas += Tree( - "./libmproxy/onboarding/static", + "../mitmproxy/libmproxy/onboarding/static", prefix="libmproxy/onboarding/static" ) a.datas += Tree( - "../venv.mitmproxy/lib/python2.7/site-packages/cryptography/hazmat/bindings/openssl/src", - prefix = "cryptography/hazmat/bindings/openssl/src" + os.path.join( + VENV, + "lib/python2.7/site-packages/certifi", + ), + prefix = "certifi" ) pyz = PYZ(a.pure) exe = EXE(pyz,