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

Side by Side Diff: runserver.spec

Issue 29331049: Issue 3354 - Enable extras module for Markdown inside HTML blocks (Closed)
Patch Set: Update hidden dependency in runserver.spec Created Nov. 27, 2015, 9:08 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 | « cms/converters.py ('k') | 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
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 def AnalysisWithHiddenImportsWorkaround(scripts, **kwargs): 6 def AnalysisWithHiddenImportsWorkaround(scripts, **kwargs):
7 import os 7 import os
8 8
9 filename = os.path.join(WORKPATH, '_hidden_imports.py') 9 filename = os.path.join(WORKPATH, '_hidden_imports.py')
10 with open(filename, 'wb') as file: 10 with open(filename, 'wb') as file:
11 for module in kwargs.pop('hiddenimports'): 11 for module in kwargs.pop('hiddenimports'):
12 print >>file, 'import ' + module 12 print >>file, 'import ' + module
13 13
14 a = Analysis([filename] + scripts, **kwargs) 14 a = Analysis([filename] + scripts, **kwargs)
15 a.scripts -= [('_hidden_imports', None, None)] 15 a.scripts -= [('_hidden_imports', None, None)]
16 return a 16 return a
17 17
18 a = AnalysisWithHiddenImportsWorkaround( 18 a = AnalysisWithHiddenImportsWorkaround(
19 ['cms/bin/test_server.py'], 19 ['cms/bin/test_server.py'],
20 pathex=['.'], 20 pathex=['.'],
21 hiddenimports=[ 21 hiddenimports=[
22 'markdown.extensions.attr_list', 22 'markdown.extensions.extra',
kzar 2015/11/27 09:11:17 (I was not able to test this change as I could not
Sebastian Noack 2015/11/27 09:28:33 That isn't sufficient as the extensions included w
kzar 2015/11/27 09:45:31 Done.
23 23
24 # Used by globals/get_browser_versions.py in web.adblockplus.org 24 # Used by globals/get_browser_versions.py in web.adblockplus.org
25 'xml.dom.minidom', 25 'xml.dom.minidom',
26 ], 26 ],
27 excludes=[ 27 excludes=[
28 'distutils', 28 'distutils',
29 'doctest', 29 'doctest',
30 'werkzeug', 30 'werkzeug',
31 31
32 # Mac-specific 32 # Mac-specific
(...skipping 10 matching lines...) Expand all
43 a.scripts, 43 a.scripts,
44 a.binaries, 44 a.binaries,
45 a.zipfiles, 45 a.zipfiles,
46 a.datas, 46 a.datas,
47 name='runserver', 47 name='runserver',
48 debug=False, 48 debug=False,
49 strip=None, 49 strip=None,
50 upx=False, 50 upx=False,
51 console=True 51 console=True
52 ) 52 )
OLDNEW
« no previous file with comments | « cms/converters.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld