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', |