@@ -44,28 +44,44 @@ Below a sample screenshot. More screenshots [here](screenshots).
44
44
# Build and runtime requirements
45
45
46
46
* Use of passphrases must have been already enabled on your [ Trezor] ( https://www.trezor.io ) device.
47
- * [ Python] ( https://www.python.org/ ) v2.7
48
- * PyCrypto
49
- * PyQt4
47
+ * [ Trezor] ( https://www.trezor.io ) device
48
+ * [ Python] ( https://www.python.org/ ) v2.7 or 3.4+
49
+ * [ PyCrypto] ( https://pypi.python.org/pypi/pycrypto )
50
+ * [ PyQt5] ( https://pypi.python.org/pypi/PyQt5 )
51
+ * [ Qt5] ( https://doc.qt.io/qt-5/ )
50
52
* [ trezorlib from python-trezor] ( https://github.com/trezor/python-trezor )
53
+ * [ Versions 0.5.0 and older used PyQy4 instead of PyQy5. Read the README.md
54
+ file of v0.5.0 for build requirements, dependencies, etc. Basically anything
55
+ relating to PyQt5 has to be replaced with the corresponding component in PyQt4.
56
+ ` pyuic5 ` becomes ` pyuic4 ` . ` pyqt5-dev-tools ` becomes ` pyqt4-dev-tools `
57
+ and so forth.]
51
58
52
59
# Building
53
60
54
- Even though the whole code is in Python, there are few Qt ` .ui ` form files that
61
+ Even though the whole code is in Python, there are few Qt5 ` .ui ` form files that
55
62
need to be transformed into Python files. There is ` Makefile ` , you just need to run
56
63
57
64
make
58
65
59
66
## Build requirements
60
67
61
- PyQt4 development tools are necessary, namely ` pyuic4 ` (look for packages named
62
- like ` pyqt4-dev-tools ` or ` PyQt4-devel ` ).
68
+ * PyQt5 development tools are necessary, namely ` pyuic5 ` (look for a package named
69
+ ` pyqt5-dev-tools ` , ` PyQt5-devel ` or similar). Required to run ` make ` .
70
+ * Depending on one's set-up one might need: ` qttools5-dev-tools `
71
+ (also sets up some of the Qt5 environment variables)
72
+ * Depending on one's set-up one might need: ` python-pyqt5 ` (Qt5 bindings for Python 2)
73
+ * Depending on one's set-up one might need: ` python3-pyqt5 ` (Qt5 bindings for Python 3)
74
+ * Depending on one's set-up one might need: ` python-pyqt5.qtsvg ` (to display SVG logos in Python 2)
75
+ * Depending on one's set-up one might need: ` python3-pyqt5.qtsvg ` (to display SVG logos in Python 3)
63
76
64
77
# Running
65
78
66
79
Run:
67
80
68
81
python TrezorSymmetricFileEncryption.py
82
+ or
83
+
84
+ python3 TrezorSymmetricFileEncryption.py
69
85
70
86
Run-time command line options are
71
87
@@ -264,7 +280,7 @@ single-file-executablefile.
264
280
- - -
265
281
** Question:** In which language is TrezorSymmetricFileEncryption written?
266
282
267
- ** Answer:** [ Python] ( https://www.python.org/ ) 2.7. It wil currently not run on Python 3 .
283
+ ** Answer:** [ Python] ( https://www.python.org/ ) . It runs on Python 2.7 and 3.4+ .
268
284
- - -
269
285
** Question:** Do I need to have a [ Trezor] ( https://www.trezor.io/ ) in
270
286
order to use TrezorSymmetricFileEncryption?
@@ -366,9 +382,9 @@ written yet.
366
382
TrezorSymmetricFileEncryption available?
367
383
368
384
** Answer:** On all platforms, operating systems where
369
- [ Python] ( https://www.python.org/ ) and PyQt4 is available: Windows, Linux, Unix,
370
- Mac OS X. Internet searches show Python for Android and iOS,
371
- but it has not been investigated or tested on Android or iOS.
385
+ [ Python] ( https://www.python.org/ ) and PyQt5 is available: Windows, Linux, Unix,
386
+ Mac OS X. Internet searches show Python and PyQt5 for Android and iOS,
387
+ but it has not been investigated, built, or tested on Android or iOS.
372
388
Testing has only been done on Linux.
373
389
- - -
374
390
** Question:** Is it fast?
0 commit comments