Skip to content
Snippets Groups Projects
Commit 694260e7 authored by Sybren A. Stüvel's avatar Sybren A. Stüvel
Browse files

Initial support for pyinstaller, needs testing & documenting

It also needs to be extended to include the system integration files.
parent 34b934d6
Branches master
No related tags found
No related merge requests found
......@@ -117,3 +117,8 @@ Flamenco Worker responds to the following POSIX signals:
Run `python setup.py zip` to create a distributable zip file. It contains the Wheel,
example configuration file, this README.md, license information and system integration
files.
Run `pyinstaller flamenco-worker.spec` to create a distributable directory in
`dist/flamenco-worker-{version}` that contains a directly runnable Flamenco Worker.
This build then doesn't require installing Python or any dependencies, and can be
directly run on a target machine of the same OS.
#!/usr/bin/env python3
# This script serves as entry point for PyInstaller.
from flamenco_worker import cli
cli.main()
# -*- mode: python -*-
# This definition is used by PyInstaller to build ready-to-run bundles.
from flamenco_worker import __version__
block_cipher = None
a = Analysis(['flamenco-worker.py'],
pathex=['./flamenco-worker-python'],
binaries=[],
datas=[('flamenco-worker.cfg', '.'),
('README.md', '.'),
('CHANGELOG.md', '.'),
('LICENSE.txt', '.')],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
exclude_binaries=True,
name='flamenco-worker',
debug=False,
strip=False,
upx=True,
console=True )
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
name='flamenco-worker-%s' % __version__)
-r requirements-test.txt
ipython
pyinstaller
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment