summaryrefslogtreecommitdiff
path: root/scripts/link_pyqt.py
diff options
context:
space:
mode:
authorRyan Farley <ryan.farley@gmx.com>2017-12-01 10:51:41 -0600
committerRyan Farley <ryan.farley@gmx.com>2017-12-01 10:51:41 -0600
commitdf6ff55b7a34d543b9235bf71f0131b2598ff1c9 (patch)
treee152e10bbb8a2effb53856cb0b153213ccf38411 /scripts/link_pyqt.py
parent49485ca220543ce9fbcc48da9f3b69feef695822 (diff)
downloadqutebrowser-df6ff55b7a34d543b9235bf71f0131b2598ff1c9.tar.gz
qutebrowser-df6ff55b7a34d543b9235bf71f0131b2598ff1c9.zip
allow pytest to default to link_pyqt
link_pyqt now checks for LINK_PYQT_SKIP, allowing pytest env names like `py36` to work properly without negative conditionals in tox.ini
Diffstat (limited to 'scripts/link_pyqt.py')
-rw-r--r--scripts/link_pyqt.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/link_pyqt.py b/scripts/link_pyqt.py
index 57eeb9138..82f8cbac5 100644
--- a/scripts/link_pyqt.py
+++ b/scripts/link_pyqt.py
@@ -205,6 +205,10 @@ def main():
args = parser.parse_args()
if args.tox:
+ #workaround for the lack of negative factors in tox.ini
+ if 'LINK_PYQT_SKIP' in os.environ:
+ print('LINK_PYQT_SKIP set, exiting...')
+ sys.exit(0)
executable = get_tox_syspython(args.path)
else:
executable = sys.executable