8000 remove deprecated ez_setup.py; update install instructions (fixes #91) · adafruit/Adafruit_Python_DHT@05c3cfe · GitHub
[go: up one dir, main page]

Skip to content 8000
This repository was archived by the owner on Nov 12, 2019. It is now read-only.

Commit 05c3cfe

Browse files
author
Brennen Bearnes
committed
remove deprecated ez_setup.py; update install instructions (fixes #91)
1 parent d09520a commit 05c3cfe

File tree

3 files changed

+42
-346
lines changed

3 files changed

+42
-346
lines changed

README.md

Lines changed: 41 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,58 @@ Designed specifically to work with the Adafruit DHT series sensors ----> https:/
77

88
Currently the library is tested with Python 2.6, 2.7, 3.3 and 3.4. It should work with Python greater than 3.4, too.
99

10+
Installing
11+
----------
12+
1013
For all platforms (Raspberry Pi and Beaglebone Black) make sure your system is able to compile Python extensions. On Raspbian or Beaglebone Black's Debian/Ubuntu image you can ensure your system is ready by executing:
1114

1215
````
1316
sudo apt-get update
14-
sudo apt-get install build-essential python-dev
17+
sudo apt-get install build-essential python-dev python3-dev
1518
````
1619

17-
Install the library by downloading with the download link on the right, unzipping the archive, and executing:
20+
Next, use `pip` to install from PyPI. For Python2:
1821

19-
````
22+
```sh
23+
sudo python -m pip install --upgrade pip setuptools wheel
24+
sudo pip install Adafruit_DHT
25+
```
26+
27+
Or for Python 3:
28+
29+
```sh
30+
sudo python3 -m pip install --upgrade pip setuptools wheel
31+
sudo pip3 install Adafruit_DHT
32+
```
33+
34+
Alternatively, you can install from this repository.
35+
36+
For Python 2, install the library by downloading from the [GitHub releases
37+
page](https://github.com/adafruit/Adafruit_Python_DHT/releases),
38+
unzipping the archive, and executing:
39+
40+
```sh
41+
sudo python -m pip install --upgrade pip setuptools wheel
42+
cd Adafruit_Python_DHT
2043
sudo python setup.py install
21-
````
22-
You can ommit the sudo if you use raspberry pi.
44+
```
45+
46+
For Python 3, download and extract the library and execute:
47+
48+
```sh
49+
sudo python3 -m pip3 install --upgrade pip setuptools wheel
50+
cd Adafruit_Python_DHT
51+
sudo python3 setup.py install
52+
```
53+
54+
Usage
55+
-----
2356

2457
See example of usage in the examples folder.
2558

59+
Author
60+
------
61+
2662
Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!
2763

2864
Written by Tony DiCola for Adafruit Industries.

ez_setup.py

Lines changed: 0 additions & 332 deletions
This file was deleted.

0 commit comments

Comments
 (0)
0