|
1 | 1 | # Multicast Python Module |
2 | 2 |
|
3 | | - |
| 3 | + |
4 | 4 |
|
5 | 5 | ## Introduction |
6 | 6 |
|
@@ -47,12 +47,60 @@ applications, making it straightforward to work with multicast sockets. |
47 | 47 |
|
48 | 48 | ## Installation |
49 | 49 |
|
50 | | -Install the package using pip: |
| 50 | +Install the package using `pip`: |
| 51 | + |
| 52 | +```bash |
| 53 | +pip install multicast |
| 54 | +``` |
| 55 | + |
| 56 | +<details><summary>Other Methods</summary> |
| 57 | + |
| 58 | +There are many ways to install the module besides using `pip`, but unless you have a specific need, |
| 59 | +using `pip` is recommended for most users. |
| 60 | + |
| 61 | +### PEP-668 and externally-managed-environment installs |
| 62 | + |
| 63 | +Users using Homebrew may require additional flags to use `pip`: |
| 64 | + |
| 65 | +```bash |
| 66 | +python3 -m pip install --use-pep517 --break-system-packages --user 'multicast>=2.0.8' |
| 67 | +``` |
| 68 | + |
| 69 | +### Install from Source |
| 70 | + |
| 71 | +*Source builds require development tools including (but not limited to): `git`, and `make`* |
| 72 | + |
| 73 | +```bash |
| 74 | +# clone the multicast source repository |
| 75 | +git clone "https://github.com/reactive-firewall/multicast.git" multicast |
| 76 | +cd multicast |
| 77 | +# switch to the stable branch |
| 78 | +git checkout stable |
| 79 | +# build the multicast module |
| 80 | +make -f Makefile build |
| 81 | +# install the build |
| 82 | +make user-install |
| 83 | +# Optionally check the install |
| 84 | +python3 -m multicast --version |
| 85 | +``` |
| 86 | + |
| 87 | +### Developer builds |
| 88 | + |
| 89 | +> [!WARNING] |
| 90 | +> **Development Builds** *(e.g. Cutting-Edge)* are not intended as full-fleged releases, however |
| 91 | +> updates to the Development Builds are more frequent than releases. |
| 92 | +
|
| 93 | +### Legacy egg style install |
| 94 | + |
| 95 | +> [!WARNING] |
| 96 | +> **Egg Style Builds** *(Deprecated)* are not supported after version `2.1` :shrug: |
51 | 97 |
|
52 | 98 | ```bash |
53 | 99 | pip install -e "git+https://github.com/reactive-firewall/multicast.git#egg=multicast" |
54 | 100 | ``` |
55 | 101 |
|
| 102 | +</details> |
| 103 | + |
56 | 104 | ## Getting Started |
57 | 105 |
|
58 | 106 | Below are basic examples to help you start using the `multicast` package. |
@@ -160,4 +208,4 @@ This project is licensed under the MIT License. See the |
160 | 208 | [LICENSE.md](https://github.com/reactive-firewall/multicast/blob/stable/LICENSE.md) file for |
161 | 209 | details. |
162 | 210 |
|
163 | | -[](https://github.com/reactive-firewall/multicast/blob/stable/LICENSE.md) |
| 211 | +[](https://github.com/reactive-firewall/multicast/blob/stable/LICENSE.md) |
0 commit comments