|
1 | 1 | btchip-python |
2 | 2 | ============= |
3 | 3 |
|
4 | | -Python samples for BTChip - work in progress |
| 4 | +Python communication library for Ledger Hardware Wallet products |
5 | 5 |
|
6 | 6 | Requirements |
7 | 7 | ------------- |
8 | 8 |
|
9 | | -This API requires cython-hidapi version 0.7.99 (at least). |
| 9 | +This API is available on pip - install with pip install btchip-python |
10 | 10 |
|
11 | | -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) |
| 11 | +Building on a Unix platform requires libusb-1.0-0-dev and libudev-dev installed previously |
| 12 | + |
| 13 | +Interim Debian packages have also been built by Richard Ulrich at https://launchpad.net/~richi-paraeasy/+archive/ubuntu/bitcoin/ (btchip-python, hidapi and python-hidapi) |
12 | 14 |
|
13 | 15 | 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) |
14 | 16 |
|
15 | 17 | Building on Windows |
16 | 18 | -------------------- |
17 | 19 |
|
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 | | - |
| 20 | + - Download and install the latest Python 2.7 version from https://www.python.org/downloads/windows/ |
| 21 | + - Install Microsoft Visual C++ Compiler for Python 2.7 from http://www.microsoft.com/en-us/download/details.aspx?id=44266 |
| 22 | + - Download and install PyQt4 for Python 2.7 from https://www.riverbankcomputing.com/software/pyqt/download |
| 23 | + - Install the btchip library (open a command prompt and enter c:\python27\scripts\pip install btchip) |
33 | 24 |
|
0 commit comments