summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2020-07-06 12:04:01 +0200
committerFlorian Bruhin <me@the-compiler.org>2020-07-10 16:21:50 +0200
commit581bbfe9cca556a12a36cc206836e874d12210f0 (patch)
tree2b7e8dce0701350195bddfb4dc8cf37b5b97032e
parente97aa691530ce1fc0c2db068ea97e2b87efa9a42 (diff)
downloadqutebrowser-581bbfe9cca556a12a36cc206836e874d12210f0.tar.gz
qutebrowser-581bbfe9cca556a12a36cc206836e874d12210f0.zip
Add PYINSTALLER_DEBUG
(cherry picked from commit ad645bba524f6cc27ee8122d44fccd6aea040708) Fix PYINSTALLER_DEBUG (cherry picked from commit f50faee0eaac79fc57f7090abb060cf587a83d73)
-rw-r--r--misc/qutebrowser.spec7
-rw-r--r--tox.ini2
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