Skip to content

Commit

Permalink
Fix packaging (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankurd1 authored Feb 24, 2021
1 parent 5c99740 commit 001b04d
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
build-binary:
echo $(VERSION) > ./config/version.txt
pipenv run pyinstaller --paths $(shell pipenv --venv) --add-data ./config:config --name opta opta/cli.py
pipenv run pyinstaller opta.spec
39 changes: 39 additions & 0 deletions opta.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# -*- mode: python ; coding: utf-8 -*-

from PyInstaller.utils.hooks import collect_data_files

block_cipher = None


a = Analysis(['opta/cli.py'],
pathex=[],
binaries=[],
datas=[('./config', 'config')] + collect_data_files('hcl2'),
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
[],
exclude_binaries=True,
name='opta',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=True )
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='opta')

0 comments on commit 001b04d

Please sign in to comment.