Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: runserver.spec

Issue 29352640: Issue 4410 - Update runserver.spec for new pyinstaller versions (Closed) Base URL: https://hg.adblockplus.org/cms/
Patch Set: Removed unnecessary comments Created Sept. 14, 2016, 7:11 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # PyInstaller spec, run "pyinstaller runserver.spec" from repository root to bui ld 1 # PyInstaller spec, run "pyinstaller runserver.spec" from repository root to bui ld
2 2
3 # Hidden imports are supposed to be analyzed recursively. However, due to 3 a = Analysis(
4 # a bug in PyInstaller imports from inside hidden modules aren't considered.
5 # https://github.com/pyinstaller/pyinstaller/issues/1086
6
7
8 def AnalysisWithHiddenImportsWorkaround(scripts, **kwargs):
9 import os
10
11 filename = os.path.join(WORKPATH, '_hidden_imports.py')
12 with open(filename, 'wb') as file:
13 for module in kwargs.pop('hiddenimports'):
14 print >>file, 'import ' + module
15
16 a = Analysis([filename] + scripts, **kwargs)
17 a.scripts -= [('_hidden_imports', None, None)]
18 return a
19
20 a = AnalysisWithHiddenImportsWorkaround(
21 ['cms/bin/test_server.py'], 4 ['cms/bin/test_server.py'],
22 pathex=['.'], 5 pathex=['.'],
23 hiddenimports=[ 6 hiddenimports=[
24 'markdown.extensions.extra', 7 'markdown.extensions.extra',
25 'markdown.extensions.smart_strong', 8 'markdown.extensions.smart_strong',
26 'markdown.extensions.fenced_code', 9 'markdown.extensions.fenced_code',
27 'markdown.extensions.footnotes', 10 'markdown.extensions.footnotes',
28 'markdown.extensions.attr_list', 11 'markdown.extensions.attr_list',
29 'markdown.extensions.def_list', 12 'markdown.extensions.def_list',
30 'markdown.extensions.tables', 13 'markdown.extensions.tables',
(...skipping 21 matching lines...) Expand all
52 a.scripts, 35 a.scripts,
53 a.binaries, 36 a.binaries,
54 a.zipfiles, 37 a.zipfiles,
55 a.datas, 38 a.datas,
56 name='runserver', 39 name='runserver',
57 debug=False, 40 debug=False,
58 strip=None, 41 strip=None,
59 upx=False, 42 upx=False,
60 console=True 43 console=True
61 ) 44 )
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld