clarification of install instructions

pull/34/head
Øystein Bjørndal 10 years ago
parent 9dbb08d313
commit 478d471750

@ -1,32 +1,36 @@
#WiringPi 2 for Python #WiringPi for Python
WiringPi: An implementation of most of the Arduino Wiring WiringPi: An implementation of most of the Arduino Wiring
functions for the Raspberry Pi functions for the Raspberry Pi
WiringPi version 2 implements new functions for managing IO expanders. WiringPi implements new functions for managing IO expanders.
##Testing ##Testing
Build with gcc version 4.6.3 (Debian 4.6.3-14+rpi1) Build with gcc version 4.6.3 (Debian 4.6.3-14+rpi1)
Built against Python 2.7.2, Python 3.2.3 Built against Python 2.7.2, Python 3.2.3
##Prerequisites ##Get/setup repo
You **must** have python-dev and python-setuptools installed ```bash
If you manually rebuild the bindings with swig -python wiringpi.i git clone --recursive https://github.com/WiringPi/WiringPi-Python.git
cd WiringPi-Python
```
YOU MUST FIRST INSTALL WIRINGPI2!! ##Prerequisites
To rebuild the bindings
you **must** first have python-dev, python-setuptools and swig installed.
```bash ```bash
git clone git://git.drogon.net/wiringPi sudo apt-get install python-dev python-setuptools swig
cd wiringPi
sudo ./build
``` ```
##Get/setup repo ##Build WiringPi
```bash ```bash
git clone https://github.com/WiringPi/WiringPi-Python.git cd WiringPi
cd WiringPi-Python sudo ./build
``` ```
##Generate Bindings ##Generate Bindings
`swig2.0 -python wiringpi.i`
or
`swig3.0 -thread -python wiringpi.i` `swig3.0 -thread -python wiringpi.i`
##Build & install with ##Build & install with

Loading…
Cancel
Save