Skip to content

Commit

Permalink
Add alternative installation instructions.
Browse files Browse the repository at this point in the history
rosdoc2 can also be installed from pypi, which would be useful on a
non-Debian / -Ubuntu platform like Fedora or macOS.

Since the doc jobs on the build farm currently use rosdoc2 @ main I also
included instructions for installing it from source via pip.

Both methods recommend using virtualenvs and link to upstream
documentation for doing so.

I'm not opposed to adding `pipx` instructions or hints as well since
this project includes tests for it, but `pipx` is not a tool that's
currently recommended by the Open Robotics Infrastructure project and
the preferred installation method will be the ROS apt repositories.
  • Loading branch information
nuclearsandwich committed Jul 11, 2024
1 parent e283f17 commit c8faa7c
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,23 @@ Additionally, if you have a Python API then you will want to provide a Sphinx `c
apt install -y python3-rosdoc2
```

#### Installation from PyPI

### `rosdoc2` installation

`rosdoc2` can be installed locally from the git repository.
Clone the repository, change into the directory, and then run:
You may also install rosdoc2 from [PyPI](https://pypi.org/project/rosdoc2).
If you do so, we recommend you install and use it from a [virtualenv][].

```
pip install --user --upgrade .
python3 -m pip install rosdoc2
```

`rosdoc2` will be installed under `~/.local/bin/` directory.
#### Installation from source

You can also use pip to install rosdoc2 from source.
Again, we recommend you install and use it from a [virtualenv][].

```
python3 -m pip install --upgrade 'git+https://github.com/ros-infrastructure/rosdoc2@main'
```

## Documentation

Expand Down Expand Up @@ -229,3 +235,5 @@ TODO
| Description / Error Message | Issue | Workaround |
|:---|:---:|:---|
| `No module named 'rclpy._rclpy_pybind11'` | [#66](https://github.com/ros-infrastructure/rosdoc2/issues/66) | Do not source colcon workspace. |

[virtualenv]: https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/#create-and-use-virtual-environments

0 comments on commit c8faa7c

Please sign in to comment.