From 581bbfe9cca556a12a36cc206836e874d12210f0 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 6 Jul 2020 12:04:01 +0200 Subject: Add PYINSTALLER_DEBUG (cherry picked from commit ad645bba524f6cc27ee8122d44fccd6aea040708) Fix PYINSTALLER_DEBUG (cherry picked from commit f50faee0eaac79fc57f7090abb060cf587a83d73) --- misc/qutebrowser.spec | 7 +++++-- tox.ini | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/misc/qutebrowser.spec b/misc/qutebrowser.spec index 43a18b6b5..ffb17d371 100644 --- a/misc/qutebrowser.spec +++ b/misc/qutebrowser.spec @@ -47,6 +47,9 @@ else: icon = None +DEBUG = os.environ.get('PYINSTALLER_DEBUG', '').lower() in ['1', 'true'] + + a = Analysis(['../qutebrowser/__main__.py'], pathex=['misc'], binaries=None, @@ -65,10 +68,10 @@ exe = EXE(pyz, exclude_binaries=True, name='qutebrowser', icon=icon, - debug=False, + debug=DEBUG, strip=False, upx=False, - console=False, + console=DEBUG, version='../misc/file_version_info.txt') coll = COLLECT(exe, a.binaries, diff --git a/tox.ini b/tox.ini index f8b258d7e..6090c6d9d 100644 --- a/tox.ini +++ b/tox.ini @@ -160,7 +160,7 @@ commands = [testenv:pyinstaller] basepython = {env:PYTHON:python3} pip_version = pip -passenv = APPDATA HOME +passenv = APPDATA HOME PYINSTALLER_DEBUG deps = -r{toxinidir}/requirements.txt -r{toxinidir}/misc/requirements/requirements-pyinstaller.txt -- cgit v1.2.3-54-g00ecf