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

Unified Diff: sitescripts/cms/runserver.spec

Issue 5395911630913536: Added PyInstaller spec to create stand-alone CMS builds (Closed)
Patch Set: Created Dec. 12, 2013, 11:17 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
« sitescripts/cms/bin/runserver.py ('K') | « sitescripts/cms/bin/runserver.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sitescripts/cms/runserver.spec
===================================================================
new file mode 100644
--- /dev/null
+++ b/sitescripts/cms/runserver.spec
@@ -0,0 +1,25 @@
+# PyInstaller spec, "run pyinstaller sitescripts/cms/runserver.spec" from sitescripts root to build
+
+a = Analysis(
+ ['sitescripts/cms/bin/runserver.py'],
+ pathex=['.'],
+ hiddenimports=[],
Sebastian Noack 2013/12/12 12:59:00 Why don't you list hidden imports here instead of
Wladimir Palant 2013/12/16 13:03:55 Because they don't work here - I tried.
+ hookspath=None,
Sebastian Noack 2013/12/12 12:59:00 I think you can omit hookspath and runtime_hooks.
Wladimir Palant 2013/12/16 13:03:55 That's autogenerated boilerplate but I can remove
+ runtime_hooks=None,
+ excludes=['sqlite3', 'django', 'ssl', '_ssl', 'OpenSSL', '_hashlib', 'unittest'],
+)
+
+pyz = PYZ(a.pure)
+
+exe = EXE(
+ pyz,
+ a.scripts,
+ a.binaries,
+ a.zipfiles,
+ a.datas,
+ name='runserver',
+ debug=False,
+ strip=None,
+ upx=False,
+ console=True
+)
« sitescripts/cms/bin/runserver.py ('K') | « sitescripts/cms/bin/runserver.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld