File: python3.patch

package info (click to toggle)
yubikey-manager-qt 1.2.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 18,132 kB
  • sloc: python: 807; javascript: 150; cpp: 135; sh: 78; xml: 62; makefile: 3
file content (52 lines) | stat: -rw-r--r-- 1,486 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Description: port build process to python3
Author: Florian Schlichting <fsfs@debian.org>
Forwarded: https://github.com/Yubico/yubikey-manager-qt/pull/308

--- a/build_qrc.py
+++ b/build_qrc.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import os
 import sys
--- a/ykman-gui/ykman-gui.pro
+++ b/ykman-gui/ykman-gui.pro
@@ -14,7 +14,7 @@
 
 message(Version of this build: $$VERSION)
 
-buildqrc.commands = python ../build_qrc.py ${QMAKE_FILE_IN}
+buildqrc.commands = python3 ../build_qrc.py ${QMAKE_FILE_IN}
 buildqrc.input = QRC_JSON
 buildqrc.output = ${QMAKE_FILE_IN_BASE}.qrc
 buildqrc.variable_out = RESOURCES
@@ -25,7 +25,7 @@
 QRC_JSON = resources.json
 
 # Generate first time
-system(python ../build_qrc.py resources.json)
+system(python3 ../build_qrc.py resources.json)
 
 # Install python dependencies with pip on mac and win
 win32|macx {
--- a/ykman-cli/ykman-cli.pro
+++ b/ykman-cli/ykman-cli.pro
@@ -6,7 +6,7 @@
 TEMPLATE = app
 SOURCES += main.cpp
 
-buildqrc.commands = python ../build_qrc.py ${QMAKE_FILE_IN}
+buildqrc.commands = python3 ../build_qrc.py ${QMAKE_FILE_IN}
 buildqrc.input = QRC_JSON
 buildqrc.output = ${QMAKE_FILE_IN_BASE}.qrc
 buildqrc.variable_out = RESOURCES
@@ -14,7 +14,7 @@
 QMAKE_EXTRA_COMPILERS += buildqrc
 QRC_JSON = resources.json
 # Generate first time
-system(python ../build_qrc.py resources.json)
+system(python3 ../build_qrc.py resources.json)
 
 # Install python dependencies with pip for win and mac
 mac|win32 {