add new pyinstaller spec files

This commit is contained in:
Maximilian Hils 2015-11-29 02:48:39 +01:00
parent 43ed82062f
commit 0b06b02c92
6 changed files with 42 additions and 99 deletions

View File

@ -1,9 +1,8 @@
include mitmproxy mitmdump
include LICENSE CHANGELOG CONTRIBUTORS README.rst
recursive-include examples *
recursive-include doc *
recursive-include test *
recursive-include libmproxy *
include mitmproxy mitmdump mitmweb
include LICENSE CHANGELOG CONTRIBUTORS CONTRIBUTING.md README.rst
graft examples
graft doc
graft test
prune test/tools
graft libmproxy
recursive-exclude * *.pyc *.pyo *.swo *.swp
recursive-exclude netlib *
recursive-exclude libpathod *

View File

@ -1,31 +1,15 @@
# -*- mode: python -*-
from glob import glob
from PyInstaller.utils.hooks import collect_data_files
VENV = "../release/venv"
a = Analysis(['../../mitmproxy/mitmdump'],
a = Analysis(['../mitmdump'],
binaries=None,
datas=collect_data_files("libmproxy.onboarding"),
hiddenimports=[],
hookspath=None,
runtime_hooks=None,
excludes=None,
)
a.datas = Tree(
"../mitmproxy/libmproxy/onboarding/templates",
prefix="libmproxy/onboarding/templates"
)
a.datas += Tree(
"../mitmproxy/libmproxy/onboarding/static",
prefix="libmproxy/onboarding/static"
)
a.datas += Tree(
os.path.join(
VENV,
"lib/python2.7/site-packages/certifi",
),
prefix = "certifi"
)
pyz = PYZ(a.pure)
excludes=None)
pyz = PYZ(a.pure, a.zipped_data)
exe = EXE(pyz,
a.scripts,
a.binaries,

View File

@ -1,31 +1,15 @@
# -*- mode: python -*-
import os.path
from glob import glob
VENV = "../release/venv"
from PyInstaller.utils.hooks import collect_data_files
a = Analysis(['../../mitmproxy/mitmproxy'],
a = Analysis(['../mitmproxy'],
binaries=None,
datas=collect_data_files("libmproxy.onboarding"),
hiddenimports=[],
hookspath=None,
runtime_hooks=None,
excludes=None,
)
a.datas = Tree(
"../mitmproxy/libmproxy/onboarding/templates",
prefix="libmproxy/onboarding/templates"
)
a.datas += Tree(
"../mitmproxy/libmproxy/onboarding/static",
prefix="libmproxy/onboarding/static"
)
a.datas += Tree(
os.path.join(
VENV,
"lib/python2.7/site-packages/certifi",
),
prefix = "certifi"
)
pyz = PYZ(a.pure)
excludes=None)
pyz = PYZ(a.pure, a.zipped_data)
exe = EXE(pyz,
a.scripts,
a.binaries,

22
release/mitmweb.spec Normal file
View File

@ -0,0 +1,22 @@
# -*- mode: python -*-
from PyInstaller.utils.hooks import collect_data_files
a = Analysis(['../mitmweb'],
binaries=None,
datas=collect_data_files("libmproxy"),
hiddenimports=[],
hookspath=None,
runtime_hooks=None,
excludes=None)
pyz = PYZ(a.pure, a.zipped_data)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='mitmweb',
debug=False,
strip=None,
upx=True,
console=True )

View File

@ -1,46 +0,0 @@
# -*- mode: python -*-
from glob import glob
VENV = "../release/venv"
a = Analysis(['../mitmproxy/mitmweb'],
hiddenimports=[],
hookspath=None,
runtime_hooks=None,
excludes=None,
)
a.datas = Tree(
"../mitmproxy/libmproxy/onboarding/templates",
prefix="libmproxy/onboarding/templates"
)
a.datas += Tree(
"../mitmproxy/libmproxy/onboarding/static",
prefix="libmproxy/onboarding/static"
)
a.datas += Tree(
"../mitmproxy/libmproxy/web/templates",
prefix="libmproxy/web/templates"
)
a.datas += Tree(
"../mitmproxy/libmproxy/web/static",
prefix="libmproxy/web/static"
)
a.datas += Tree(
os.path.join(
VENV,
"lib/python2.7/site-packages/certifi",
),
prefix = "certifi"
)
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='mitmweb',
debug=False,
strip=None,
upx=True,
console=True )

View File

@ -34,7 +34,7 @@ scripts = {
"urwid~=1.3.1",
},
"mitmdump": {
"click~=5.1",
"click~=6.2",
},
"mitmweb": set()
}