* Many distributions have dnspython packaged for you, so you should
check there first.
-* If you have pip installed, you can do `pip install dnspython`
-* If not just download the source file and unzip it, then run
- `sudo python setup.py install`
+* To use a wheel downloaded from PyPi, run:
+
+ pip install dnspython
+
+* To install from the source code, go into the top-level of the source code
+ and run:
+
+ pip install --upgrade pip build
+ python -m build
+ pip install dist/*.whl
+
* To install the latest from the master branch, run `pip install git+https://github.com/rthalley/dnspython.git`
Dnspython's default installation does not depend on any modules other than
If you want to use the Trio asynchronous I/O package, run
`pip install dnspython[trio]`.
-If you want to use the Curio asynchronous I/O package, run
-`pip install dnspython[curio]`.
-
If you want to use WMI on Windows to determine the active DNS settings
instead of the default registry scanning method, run
`pip install dnspython[wmi]`.
### Notices
Python 2.x support ended with the release of 1.16.0. Dnspython 2.0.0 through
-2.2.x support Python 3.6 and later. As of dnspython 2.3.0, the minimum
-supported Python version is 3.7. We plan to align future support with the
-lifetime of the Python 3 versions.
+2.2.x support Python 3.6 and later. For dnspython 2.3.x, the minimum
+supported Python version is 3.7, and for 2.4.x the minimum supported verison is 3.8.
+We plan to align future support with the lifetime of the Python 3 versions.
Documentation has moved to
[dnspython.readthedocs.io](https://dnspython.readthedocs.io).