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

Unified 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.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runserver.spec
===================================================================
--- a/runserver.spec
+++ b/runserver.spec
@@ -1,28 +1,11 @@
# PyInstaller spec, run "pyinstaller runserver.spec" from repository root to build
-# Hidden imports are supposed to be analyzed recursively. However, due to
-# a bug in PyInstaller imports from inside hidden modules aren't considered.
-# https://github.com/pyinstaller/pyinstaller/issues/1086
-
-
-def AnalysisWithHiddenImportsWorkaround(scripts, **kwargs):
- import os
-
- filename = os.path.join(WORKPATH, '_hidden_imports.py')
- with open(filename, 'wb') as file:
- for module in kwargs.pop('hiddenimports'):
- print >>file, 'import ' + module
-
- a = Analysis([filename] + scripts, **kwargs)
- a.scripts -= [('_hidden_imports', None, None)]
- return a
-
-a = AnalysisWithHiddenImportsWorkaround(
+a = Analysis(
['cms/bin/test_server.py'],
pathex=['.'],
hiddenimports=[
'markdown.extensions.extra',
'markdown.extensions.smart_strong',
'markdown.extensions.fenced_code',
'markdown.extensions.footnotes',
'markdown.extensions.attr_list',
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld