Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.

Commit 8b0476d

Browse files
committed
Remove WinUSB description, document Windows build
1 parent 3c04717 commit 8b0476d

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

README.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,28 @@ Python samples for BTChip - work in progress
66
Requirements
77
-------------
88

9-
This API requires cython-hidapi version 0.7.99 (at least) and optionally PyUSB version 1.0.0rc1 (at least) if you plan to use the WinUSB transport.
9+
This API requires cython-hidapi version 0.7.99 (at least).
1010

1111
To install cython-hidapi, refer to the instructions on https://github.com/trezor/cython-hidapi until a packaged version is available. Interim Debian packages have been built by Richard Ulrich at https://launchpad.net/~richi-paraeasy/+archive/ubuntu/bitcoin/ (btchip-python, hidapi and python-hidapi)
1212

13-
To install PyUSB, refer to the instructions on https://github.com/walac/pyusb until a packaged version is available. Interim Debian packages have been built by Richard Ulrich at https://launchpad.net/~richi-paraeasy/+archive/ubuntu/bitcoin/ (btchip-python and pyusb)
14-
1513
For optional BIP 39 support during dongle setup, also install https://github.com/trezor/python-mnemonic - also available as a Debian package at the previous link (python-mnemonic)
1614

15+
Building on Windows
16+
--------------------
17+
18+
- Download and install Python from https://www.python.org/ftp/python/2.7.8/python-2.7.8.msi
19+
- Download and install Python QT from http://downloads.sourceforge.net/project/pyqt/PyQt4/PyQt-4.11.1/PyQt4-4.11.1-gpl-Py2.7-Qt4.8.6-x32.exe
20+
- Download and install PyWin32 from http://sourceforge.net/projects/pywin32/files/pywin32/Build%20218/pywin32-218.win32-py2.7.exe/download
21+
- Download MinGW setup from http://sourceforge.net/projects/mingw/files/Installer/mingw-get-setup.exe/download
22+
- Install mingw32-gcc-g++ and mingw32-libz (dev and dll)
23+
- Create a /Lib/disutils/distutils.cfg file in your Python installation directory (typically /Python27) containing the following content
24+
25+
```
26+
[build]
27+
compliler=mingw32
28+
```
29+
30+
- Install distribute from https://gist.githubusercontent.com/anonymous/947191a4635cd7b7f79a/raw/36054b7f8d7b0c4c172628fd9bd16f46e53bb34b/distribute_setup.py
31+
- Install the dependencies by running /Python27/Scripts/easy_install.exe cython hidapi
32+
1733

0 commit comments

Comments
 (0)