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: Created Sept. 12, 2016, 10:44 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 # Hidden imports are supposed to be analyzed recursively. However, due to
Vasily Kuznetsov 2016/09/13 16:29:37 So should we maybe also remove this comment now th
Wladimir Palant 2016/09/14 07:12:26 You are right, I overlooked that comment. Removed
4 # a bug in PyInstaller imports from inside hidden modules aren't considered. 4 # a bug in PyInstaller imports from inside hidden modules aren't considered.
5 # https://github.com/pyinstaller/pyinstaller/issues/1086 5 # https://github.com/pyinstaller/pyinstaller/issues/1086
6 6
7 7
8 def AnalysisWithHiddenImportsWorkaround(scripts, **kwargs): 8 a = Analysis(
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'], 9 ['cms/bin/test_server.py'],
22 pathex=['.'], 10 pathex=['.'],
23 hiddenimports=[ 11 hiddenimports=[
24 'markdown.extensions.extra', 12 'markdown.extensions.extra',
25 'markdown.extensions.smart_strong', 13 'markdown.extensions.smart_strong',
26 'markdown.extensions.fenced_code', 14 'markdown.extensions.fenced_code',
27 'markdown.extensions.footnotes', 15 'markdown.extensions.footnotes',
28 'markdown.extensions.attr_list', 16 'markdown.extensions.attr_list',
29 'markdown.extensions.def_list', 17 'markdown.extensions.def_list',
30 'markdown.extensions.tables', 18 'markdown.extensions.tables',
(...skipping 21 matching lines...) Expand all
52 a.scripts, 40 a.scripts,
53 a.binaries, 41 a.binaries,
54 a.zipfiles, 42 a.zipfiles,
55 a.datas, 43 a.datas,
56 name='runserver', 44 name='runserver',
57 debug=False, 45 debug=False,
58 strip=None, 46 strip=None,
59 upx=False, 47 upx=False,
60 console=True 48 console=True
61 ) 49 )
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